diff --git a/sdks/golang/.gitignore b/sdks/golang/.gitignore
new file mode 100644
index 00000000..f3532a93
--- /dev/null
+++ b/sdks/golang/.gitignore
@@ -0,0 +1,2 @@
+*.idea
+/client/.kiota.log
diff --git a/sdks/golang/Makefile b/sdks/golang/Makefile
new file mode 100644
index 00000000..237cd1d4
--- /dev/null
+++ b/sdks/golang/Makefile
@@ -0,0 +1,11 @@
+init:
+ go mod init abdm_client
+ go get github.com/microsoft/kiota-abstractions-go
+ go get github.com/microsoft/kiota-http-go
+ go get github.com/microsoft/kiota-serialization-form-go
+ go get github.com/microsoft/kiota-serialization-json-go
+ go get github.com/microsoft/kiota-serialization-text-go
+ go get github.com/microsoft/kiota-serialization-multipart-go
+
+gen:
+ kiota generate -l go -c AbdmClient -n abdm_client/client -d api-reference/user-app/abdm-connect/registration.yml -o ./client
\ No newline at end of file
diff --git a/sdks/golang/abdm.yml b/sdks/golang/abdm.yml
new file mode 100644
index 00000000..1861f90a
--- /dev/null
+++ b/sdks/golang/abdm.yml
@@ -0,0 +1,2322 @@
+openapi: 3.0.0
+info:
+ description: ABHA Registration and login APIs
+ title: Registration
+ version: 1.0.0
+servers:
+- description: Production
+ url: https://api.eka.care
+- description: Stage/Sandbox
+ url: https://api.dev.eka.care
+paths:
+ /abdm/v1/care-contexts/discover:
+ post:
+ description: "ABDM allows a user to find their health records from any health
+ facility they have visited via the discovery process. \n\nDiscover API returns
+ any unlinked care-context for the ABHA User."
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DiscoverRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DiscoverResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/care-contexts/discover/link/confirm:
+ post:
+ description: Confirm linking for discovered care context
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ConfirmRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ConfirmResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/care-contexts/discover/link/init:
+ post:
+ description: Initialise the linking for discovered care context.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitRequestType3'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GerrorErrorResp'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitResponseType4'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/care-contexts/linked:
+ get:
+ parameters:
+ - in: query
+ name: hip_id
+ required: true
+ schema:
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/RecordsResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/care-contexts/providers:
+ get:
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProviderResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/approve:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ApproveRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/deny:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DenyRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/change:
+ post:
+ description: Change the consent pin by providing a old and new pin combination
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ChangeRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/exists:
+ get:
+ description: Returns if the user has already set the consent pin.
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExistResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/forgot/init:
+ post:
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitResponseType3'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/forgot/verify:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequestType5'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/reset:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SetRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/set:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SetRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/pin/verify:
+ post:
+ description: Verify the consent pin to approve/revoke consents
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequestType4'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/consents/revoke:
+ post:
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/RevokeRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/profile:
+ delete:
+ description: This endpoint removes the specified ABHA profile along with all
+ associated documents, vital records, and any other related data from the system.Please
+ note that the ABHA metadata will remain in the ABDM system, as ABDM does not
+ provide a delete option
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ get:
+ description: Fetches the ABHA profile of the User. Please cache these
+ results locally. We do not recommend calling this API on every page load.
+ Evict the cache when there is profile update.
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProfileResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ patch:
+ description: |-
+ Update Profile Details
+
+ The API expects all the fields returned by the [Get Profiles API](/api-reference/user-app/abdm-connect/profile/details/profile-details) to be included in the PATCH request body.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DetailsRequestType2'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "204":
+ description: No Content
+ security:
+ - authApiKey: []
+ /abdm/v1/profile/asset/card:
+ get:
+ description: Fetch the ABHA card.Please cache these results locally. We
+ do not recommend calling this API on every page load. Evict the cache when
+ there is profile update.
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ image/png:
+ schema:
+ format: binary
+ type: string
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/profile/asset/qr:
+ get:
+ description: Fetch the data for ABHA qr code display. Please cache these
+ results locally. We do not recommend calling this API on every page load.
+ Evict the cache when there is profile update.There is no fixed
+ structure for this JSON; it can vary depending on the creation of ABHA. Generate
+ the QR code based on the content of the response body.
+ parameters:
+ - in: query
+ name: format
+ schema:
+ enum:
+ - json
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ additionalProperties:
+ type: string
+ type: object
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/profile/share:
+ post:
+ description: Fetch the token from a hospital. Get the hip_id and counter_id
+ by reading the QR code of the Hospital/Clinic. Use the device
+ location for the location data
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ScanandshareRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HipQRScanShareProfileResponseV2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/provider/{hip_id}:
+ get:
+ parameters:
+ - in: path
+ name: hip_id
+ required: true
+ schema:
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ProviderResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/providers:
+ get:
+ parameters:
+ - in: query
+ name: name
+ schema:
+ minLength: 3
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/ProviderResponseType2'
+ type:
+ - "null"
+ - array
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/create:
+ post:
+ description: This API is used to create a new ABHA address
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/init:
+ post:
+ description: This endpoint is used to initiate the Aadhaar registration process.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/mobile/resend:
+ post:
+ description: This endpoint is used to resend the mobile otp for aadhaar registration
+ process.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendRequestType2'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/mobile/verify:
+ post:
+ description: This API operates on a skip logic basis. If the mobile number provided
+ in the second step differs from the one linked to the Aadhaar, this API will
+ be used to verify the new mobile number.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequestType2'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/resend:
+ post:
+ description: This endpoint is used to resend a otp for aadhaar registration
+ process.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/aadhaar/verify:
+ post:
+ description: This endpoint is used to verify Aadhaar otp generated for registration
+ using Aadhaar.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/abha/check:
+ post:
+ description: This API endpoint allows to check whether provided health id is
+ already present in system.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExistRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ExistResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/mobile/create:
+ post:
+ description: This API is used to create a new ABHA address for the user.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateRequestType2'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/mobile/init:
+ post:
+ description: This endpoint is used to initiate the registration process for
+ a mobile number.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitRequestType2'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitResponseType2'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/mobile/login:
+ post:
+ description: If the user already has an existing ABHA address, use this API
+ to select that ABHA address and proceed to log the user in using the chosen
+ address.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/LoginRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/LoginResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/mobile/resend:
+ post:
+ description: This endpoint is used to resend a mobile registration request.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendRequestType3'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ResendResponseType3'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/mobile/verify:
+ post:
+ description: This endpoint allows to verify a mobile otp.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequestType3'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyResponseType3'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/pincode/{pincode}:
+ get:
+ description: This API endpoint is used to fetch pincode details.
+ parameters:
+ - in: path
+ name: pincode
+ required: true
+ schema:
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PincodeResolvedPincodeData'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/registration/suggest:
+ post:
+ description: This API endpoint is used to fetch some suggested abha id that
+ are available on the basis of user details.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SuggestRequest'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SuggestResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/request:
+ get:
+ description: ""
+ parameters:
+ - description: Consent/Subscription/Authorization ID
+ in: query
+ name: id
+ schema:
+ description: Consent/Subscription/Authorization ID
+ type: string
+ - description: Request type
+ in: query
+ name: type
+ schema:
+ description: Request type
+ enum:
+ - consent
+ - subscription
+ - authorization
+ type: string
+ - description: Status of the request
+ in: query
+ name: status
+ schema:
+ description: Status of the request
+ enum:
+ - requested
+ - granted
+ - expired
+ - denied
+ - revoked
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/DetailsResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/requests:
+ get:
+ description: API to list all the Subscriptions / Authorization and Consent requests
+ parameters:
+ - in: query
+ name: status
+ schema:
+ enum:
+ - requested
+ - granted
+ - expired
+ - denied
+ - revoked
+ examples:
+ - granted
+ type: string
+ - in: query
+ name: type
+ schema:
+ enum:
+ - consent
+ - subscription
+ - authorization
+ - all
+ examples:
+ - consent
+ type: string
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ListsResponse'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/session/init:
+ post:
+ description: Generate mobile OTP for user session token
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitRequestType4'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/InitResponseType5'
+ description: OK
+ security:
+ - authApiKey: []
+ /abdm/v1/session/verify:
+ post:
+ description: Verify mobile OTP and get user session token
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyRequestType6'
+ responses:
+ 4XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ 5XX:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GenericError'
+ description: ""
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/VerifyResponseType4'
+ description: OK
+ security:
+ - authApiKey: []
+components:
+ schemas:
+ ApproveConsent:
+ properties:
+ access_mode:
+ enum:
+ - view
+ type: string
+ care_contexts:
+ items:
+ $ref: '#/components/schemas/CommonsCareContext'
+ type:
+ - array
+ - "null"
+ duration:
+ $ref: '#/components/schemas/CommonsDuration'
+ erase_at:
+ format: date-time
+ type: string
+ hi_types:
+ items:
+ type: string
+ type:
+ - array
+ - "null"
+ hip_id:
+ type: string
+ type: object
+ ApproveRequest:
+ properties:
+ consent_artefacts:
+ items:
+ $ref: '#/components/schemas/ApproveConsent'
+ type:
+ - array
+ - "null"
+ id:
+ type: string
+ pin_detail:
+ $ref: '#/components/schemas/CommonsPinDetail'
+ type: object
+ ChangeRequest:
+ properties:
+ new:
+ type: string
+ old:
+ type: string
+ type: object
+ CommonsCareContext:
+ properties:
+ display:
+ description: Care Context Display Name
+ examples:
+ - Heart Rate 2020
+ type: string
+ id:
+ description: Care Context ID
+ examples:
+ - heart-rate-2020
+ type: string
+ type: object
+ CommonsDuration:
+ properties:
+ from:
+ description: Start time of the consent
+ format: date-time
+ type: string
+ to:
+ description: End time of the consent
+ format: date-time
+ type: string
+ type: object
+ CommonsHiType:
+ properties:
+ display:
+ description: Display name of the Health Information Type
+ type: string
+ enabled:
+ description: Is the Health Information Type enabled
+ type: boolean
+ id:
+ description: Health Information Type ID
+ enum:
+ - OPConsultation
+ - Prescription
+ - DischargeSummary
+ - DiagnosticReport
+ - ImmunizationRecord
+ - HealthDocumentRecord
+ - WellnessRecord
+ type: string
+ type: object
+ CommonsHip:
+ properties:
+ id:
+ description: Health Information Provider ID
+ examples:
+ - INXXXXX
+ type: string
+ name:
+ description: Name of the Health Information Provider
+ examples:
+ - Apollo Hospital
+ type: string
+ type: object
+ CommonsHiu:
+ properties:
+ id:
+ description: Health Information User ID
+ examples:
+ - INXXXXX
+ type: string
+ name:
+ description: Name of the Health Information User
+ examples:
+ - Apollo Hospital
+ type: string
+ type: object
+ CommonsPinDetail:
+ properties:
+ pin:
+ description: PIN for the consent request
+ examples:
+ - "1234"
+ type: string
+ type: object
+ CommonsPurpose:
+ properties:
+ code:
+ type: string
+ text:
+ type: string
+ type: object
+ CommonsRequester:
+ properties:
+ name:
+ description: Name of the requester.
+ examples:
+ - Dr John
+ type: string
+ type: object
+ ConfirmRequest:
+ properties:
+ otp:
+ type: string
+ txn_id:
+ type: string
+ required:
+ - txn_id
+ type: object
+ ConfirmResponse:
+ properties:
+ cc_ref_id:
+ type: string
+ txn_id:
+ type: string
+ type: object
+ CreateRequest:
+ properties:
+ abha_address:
+ description: ABHA Address to be linked with the ABHA Number, example sudo@golang
+ examples:
+ - shyam.eka@golang
+ type: string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ CreateRequestType2:
+ properties:
+ abha_address:
+ type: string
+ profile:
+ $ref: '#/components/schemas/DetailsRequestType2'
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ CreateResponse:
+ properties:
+ eka:
+ $ref: '#/components/schemas/RegistrationEkaIds'
+ description: Eka IDs
+ hint:
+ description: Hint for the mobile number
+ type: string
+ profile:
+ $ref: '#/components/schemas/ProfileResponse'
+ description: ABHA Profile
+ refresh_token:
+ description: Refresh token for the user
+ type:
+ - "null"
+ - string
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ token:
+ description: Access token for the user
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ CreateResponseType2:
+ properties:
+ eka:
+ $ref: '#/components/schemas/RegistrationEkaIds'
+ description: Eka IDs, will be present if SkipState is abha_end
+ profile:
+ $ref: '#/components/schemas/ProfileResponse'
+ refresh_token:
+ description: Refresh token for the user
+ type:
+ - "null"
+ - string
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ success:
+ type: boolean
+ token:
+ description: Access token for the user, will be present if SkipState is
+ abha_end
+ type:
+ - "null"
+ - string
+ type: object
+ DenyRequest:
+ properties:
+ id:
+ description: Consent ID
+ type: string
+ reason:
+ description: Users reason for denial in plain text
+ type: string
+ type: object
+ DetailsCareContext:
+ properties:
+ display:
+ type: string
+ id:
+ type: string
+ type: object
+ DetailsProviders:
+ properties:
+ care_contexts:
+ items:
+ $ref: '#/components/schemas/DetailsCareContext'
+ type:
+ - array
+ - "null"
+ consent_artefact_id:
+ description: Consent Artefact ID, it's a sub-part of consent. In a consent
+ every Provide will have unique consent artefact id'
+ type:
+ - "null"
+ - string
+ hip:
+ $ref: '#/components/schemas/CommonsHip'
+ description: HIP details
+ type: object
+ DetailsRequestType2:
+ properties:
+ address:
+ examples:
+ - 123, ABC Street
+ type:
+ - "null"
+ - string
+ day_of_birth:
+ examples:
+ - 1
+ type:
+ - "null"
+ - integer
+ first_name:
+ examples:
+ - Shyam
+ type:
+ - "null"
+ - string
+ gender:
+ enum:
+ - M
+ - F
+ - O
+ examples:
+ - M
+ type:
+ - "null"
+ - string
+ last_name:
+ examples:
+ - Singh
+ type:
+ - "null"
+ - string
+ middle_name:
+ examples:
+ - Kumar
+ type:
+ - "null"
+ - string
+ month_of_birth:
+ examples:
+ - 1
+ type:
+ - "null"
+ - integer
+ pincode:
+ examples:
+ - "110001"
+ type:
+ - "null"
+ - string
+ year_of_birth:
+ examples:
+ - 1990
+ type:
+ - "null"
+ - integer
+ type: object
+ DetailsResponse:
+ properties:
+ access_mode:
+ enum:
+ - view
+ type: string
+ created_at:
+ format: date-time
+ type: string
+ duration:
+ $ref: '#/components/schemas/CommonsDuration'
+ erase_at:
+ format: date-time
+ type: string
+ hi_types:
+ description: List of HI Types
+ items:
+ $ref: '#/components/schemas/CommonsHiType'
+ type:
+ - array
+ - "null"
+ hiu:
+ $ref: '#/components/schemas/CommonsHiu'
+ description: HIU details
+ id:
+ type: string
+ providers:
+ description: List of Providers/Failities details
+ items:
+ $ref: '#/components/schemas/DetailsProviders'
+ type:
+ - array
+ - "null"
+ purpose:
+ $ref: '#/components/schemas/CommonsPurpose'
+ description: Purpose of the request
+ requester:
+ $ref: '#/components/schemas/CommonsRequester'
+ description: Requester details
+ status:
+ enum:
+ - requested
+ - granted
+ - expired
+ - denied
+ - revoked
+ type: string
+ updated_at:
+ format: date-time
+ type: string
+ type: object
+ DiscoverCareContext:
+ properties:
+ display:
+ type: string
+ id:
+ type: string
+ type: object
+ DiscoverPatient:
+ properties:
+ care_contexts:
+ items:
+ $ref: '#/components/schemas/DiscoverCareContext'
+ type:
+ - array
+ - "null"
+ display:
+ type: string
+ id:
+ type: string
+ type: object
+ DiscoverRequest:
+ properties:
+ hip_id:
+ type: string
+ ref_id:
+ description: The unique identifier for the patient within the Healthcare
+ Information Provider (HIP), such as the patient's registration ID, email
+ address, or phone number used at the hospital or lab.
+ type: string
+ required:
+ - hip_id
+ type: object
+ DiscoverResponse:
+ properties:
+ patient:
+ items:
+ $ref: '#/components/schemas/DiscoverPatient'
+ type:
+ - array
+ - "null"
+ txn_id:
+ type: string
+ type: object
+ ExistRequest:
+ properties:
+ abha_address:
+ type: string
+ type: object
+ ExistResponse:
+ properties:
+ exist:
+ description: True if the ABHA Address already exists
+ type: boolean
+ type: object
+ ExistResponseType2:
+ properties:
+ exist:
+ type: boolean
+ type: object
+ GenericError:
+ properties:
+ code:
+ type: integer
+ error:
+ type: string
+ type: object
+ GerrorAction:
+ properties:
+ cta:
+ $ref: '#/components/schemas/GerrorActionCta'
+ description:
+ type: string
+ img:
+ type: string
+ suggest_method:
+ type: string
+ title:
+ type: string
+ type: object
+ GerrorActionCta:
+ properties:
+ params:
+ additionalProperties:
+ type: string
+ type:
+ - object
+ - "null"
+ pid:
+ type: string
+ title:
+ type: string
+ type: object
+ GerrorErrorResp:
+ properties:
+ action:
+ $ref: '#/components/schemas/GerrorAction'
+ code:
+ type: integer
+ error:
+ type: string
+ type: object
+ HipLocation:
+ properties:
+ latitude:
+ type: string
+ longitude:
+ type: string
+ type: object
+ HipQRScanShareProfileResponseV2:
+ properties:
+ address:
+ type: string
+ created_at:
+ format: date-time
+ type: string
+ footer:
+ type: string
+ hip_id:
+ type: string
+ hip_name:
+ type: string
+ request_id:
+ type: string
+ show_token_screen:
+ type: boolean
+ token_expiry:
+ format: date-time
+ type: string
+ token_number:
+ type: string
+ type: object
+ InitRequest:
+ properties:
+ aadhaar_number:
+ examples:
+ - "123456789012"
+ type: string
+ type: object
+ InitRequestType2:
+ properties:
+ mobile_number:
+ type: string
+ type: object
+ InitRequestType3:
+ properties:
+ cc_ref_id:
+ type: string
+ patient_ref_id:
+ type: string
+ txn_id:
+ type: string
+ required:
+ - txn_id
+ - patient_ref_id
+ - cc_ref_id
+ type: object
+ InitRequestType4:
+ properties:
+ abha_address:
+ examples:
+ - sudo@golang
+ type: string
+ required:
+ - abha_address
+ type: object
+ InitResponse:
+ properties:
+ hint:
+ description: Hint message for the mobile number
+ examples:
+ - OTP sent successfully to your mobile number ******90973
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: ' Transaction id for the abha registration'
+ examples:
+ - 5d060cad-a93b-4edf-p3ef-bd412f69s400
+ type: string
+ type: object
+ InitResponseType2:
+ properties:
+ hint:
+ description: Hint message for the mobile number
+ examples:
+ - OTP sent successfully to your mobile number ******90973
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction id received in the /init API
+ examples:
+ - 5d060cad-a93b-4edf-p3ef-bd412f69s400
+ type: string
+ type: object
+ InitResponseType3:
+ properties:
+ expiry_in_minutes:
+ type: integer
+ medium:
+ description: Medium which is used to generate otp
+ examples:
+ - mobile
+ type: string
+ otp_medium_value:
+ description: Value of medium
+ examples:
+ - "9225828688"
+ type: string
+ txn_id:
+ type: string
+ type: object
+ InitResponseType4:
+ properties:
+ txn_id:
+ type: string
+ type: object
+ InitResponseType5:
+ properties:
+ txn_id:
+ description: Transaction ID for the session
+ type: string
+ type: object
+ ListsRequestDetail:
+ properties:
+ created_at:
+ description: Time when the consent was created
+ format: date-time
+ type: string
+ duration:
+ $ref: '#/components/schemas/CommonsDuration'
+ hiu:
+ $ref: '#/components/schemas/CommonsHiu'
+ description: Health Information User,the requesting entity Clinic hospital
+ id:
+ description: Unique identifier for the consent/authorization/subsripition
+ type: string
+ purpose:
+ $ref: '#/components/schemas/CommonsPurpose'
+ requester:
+ $ref: '#/components/schemas/CommonsRequester'
+ type: object
+ ListsResponse:
+ properties:
+ authorizations:
+ description: List of authorizations
+ items:
+ $ref: '#/components/schemas/ListsRequestDetail'
+ type:
+ - array
+ - "null"
+ consents:
+ description: List of consents
+ items:
+ $ref: '#/components/schemas/ListsRequestDetail'
+ type:
+ - array
+ - "null"
+ subscriptions:
+ description: List of subscriptions
+ items:
+ $ref: '#/components/schemas/ListsRequestDetail'
+ type:
+ - array
+ - "null"
+ type: object
+ LoginRequest:
+ properties:
+ abha_address:
+ type: string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ LoginResponse:
+ properties:
+ eka:
+ $ref: '#/components/schemas/RegistrationEkaIds'
+ description: Eka IDs, will be present if SkipState is abha_end
+ profile:
+ $ref: '#/components/schemas/ProfileResponse'
+ description: Profile of the user, will be present if SkipState is abha_end
+ refresh_token:
+ description: Refresh token for the user, will be present if SkipState is
+ abha_end
+ type:
+ - "null"
+ - string
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ token:
+ description: Access token for the user, will be present if SkipState is
+ abha_end
+ type:
+ - "null"
+ - string
+ txn_id:
+ type: string
+ type: object
+ PincodeResolvedPincodeData:
+ properties:
+ dist_code:
+ examples:
+ - "339"
+ type: string
+ dist_name:
+ examples:
+ - Ranchi
+ type: string
+ pincode:
+ examples:
+ - "834001"
+ type: string
+ state_code:
+ examples:
+ - "20"
+ type: string
+ state_name:
+ examples:
+ - Jharkhand
+ type: string
+ type: object
+ ProfileResponse:
+ properties:
+ abha_address:
+ examples:
+ - shyam@golang
+ type: string
+ abha_number:
+ examples:
+ - 12-3456-7856-8912
+ type:
+ - "null"
+ - string
+ address:
+ type:
+ - "null"
+ - string
+ day_of_birth:
+ type:
+ - "null"
+ - integer
+ first_name:
+ type:
+ - "null"
+ - string
+ gender:
+ enum:
+ - M
+ - F
+ - O
+ examples:
+ - M
+ type: string
+ kyc_verified:
+ type:
+ - "null"
+ - boolean
+ last_name:
+ type:
+ - "null"
+ - string
+ middle_name:
+ type:
+ - "null"
+ - string
+ mobile:
+ type:
+ - "null"
+ - string
+ month_of_birth:
+ type:
+ - "null"
+ - integer
+ pincode:
+ type:
+ - "null"
+ - string
+ year_of_birth:
+ type:
+ - "null"
+ - integer
+ type: object
+ ProviderHipDetail:
+ properties:
+ hip_id:
+ type: string
+ hip_name:
+ type:
+ - "null"
+ - string
+ type: object
+ ProviderResponse:
+ properties:
+ providers:
+ items:
+ $ref: '#/components/schemas/ProviderHipDetail'
+ type:
+ - array
+ - "null"
+ type: object
+ ProviderResponseType2:
+ properties:
+ city:
+ type:
+ - "null"
+ - string
+ hip_id:
+ type: string
+ hip_name:
+ type:
+ - "null"
+ - string
+ state:
+ type:
+ - "null"
+ - string
+ type: object
+ RecordsCareContext:
+ properties:
+ care_context_id:
+ type: string
+ created_at:
+ type: string
+ display:
+ type: string
+ status:
+ enum:
+ - Consent raised to HIP
+ - Consent granted from HIP
+ - Consent error by HIP
+ - Data request from HIP
+ - Data received from HIP
+ - Data is being processed
+ - Data processed
+ - Invalid data received from HIP
+ - No Data Available from HIP
+ type: string
+ type: object
+ RecordsResponse:
+ properties:
+ care_contexts:
+ items:
+ $ref: '#/components/schemas/RecordsCareContext'
+ type:
+ - array
+ - "null"
+ required:
+ - care_contexts
+ type: object
+ RegistrationEkaIds:
+ properties:
+ oid:
+ type:
+ - "null"
+ - string
+ uuid:
+ type:
+ - "null"
+ - string
+ type: object
+ ResendRequest:
+ properties:
+ txn_id:
+ examples:
+ - 5d060cad-a93b-4edf-p3ef-bd412f69s400
+ type: string
+ type: object
+ ResendRequestType2:
+ properties:
+ txn_id:
+ description: Transaction ID received in the init API
+ type: string
+ required:
+ - txn_id
+ type: object
+ ResendRequestType3:
+ properties:
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ ResendResponse:
+ properties:
+ hint:
+ description: Hint message for the mobile number
+ examples:
+ - OTP sent successfully to your mobile number ******90973
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction ID received in the init API
+ examples:
+ - 5d060cad-a93b-4edf-p3ef-bd412f69s400
+ type: string
+ type: object
+ ResendResponseType2:
+ properties:
+ hint:
+ type:
+ - "null"
+ - string
+ txn_id:
+ type: string
+ type: object
+ ResendResponseType3:
+ properties:
+ hint:
+ type: string
+ txn_id:
+ type: string
+ type: object
+ RevokeRequest:
+ properties:
+ consent_artefacts:
+ description: List of consent artefacts to be revoked.
+ items:
+ type: string
+ type:
+ - array
+ - "null"
+ pin_detail:
+ $ref: '#/components/schemas/CommonsPinDetail'
+ type: object
+ ScanandshareRequest:
+ properties:
+ counter_id:
+ description: Counter ID
+ type: string
+ hip_id:
+ description: HIP ID from QR Code
+ type: string
+ location:
+ $ref: '#/components/schemas/HipLocation'
+ description: Location of the user
+ type: object
+ SetRequest:
+ properties:
+ pin:
+ type: string
+ type: object
+ SuggestRequest:
+ properties:
+ flow:
+ enum:
+ - aadhaar
+ - mobile
+ type: string
+ txn_id:
+ description: Transaction ID received in /init api
+ type: string
+ user_detail:
+ $ref: '#/components/schemas/SuggestUserDetail'
+ type: object
+ SuggestResponse:
+ properties:
+ suggestions:
+ items:
+ type: string
+ type:
+ - array
+ - "null"
+ type: object
+ SuggestUserDetail:
+ properties:
+ day_of_birth:
+ type: string
+ first_name:
+ examples:
+ - John
+ type: string
+ last_name:
+ type: string
+ month_of_birth:
+ type: string
+ year_of_birth:
+ type: string
+ type: object
+ VerifyAbhaProfile:
+ properties:
+ abha_address:
+ type: string
+ name:
+ type: string
+ type: object
+ VerifyRequest:
+ properties:
+ mobile:
+ description: Mobile number to be linked with ABHA, this mobile number can
+ be different from the mobile number linked with the Aadhaar. ABHA Created
+ will be linked with this mobile number.
+ type:
+ - "null"
+ - string
+ otp:
+ type:
+ - "null"
+ - string
+ txn_id:
+ type: string
+ type: object
+ VerifyRequestType2:
+ properties:
+ otp:
+ description: OTP received on the mobile number
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ VerifyRequestType3:
+ properties:
+ otp:
+ type: string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ VerifyRequestType4:
+ properties:
+ pin:
+ type: string
+ scope:
+ type: string
+ type: object
+ VerifyRequestType5:
+ properties:
+ otp:
+ type: string
+ txn_id:
+ type: string
+ type: object
+ VerifyRequestType6:
+ properties:
+ otp:
+ type: string
+ txn_id:
+ description: Transaction ID for the session
+ type: string
+ required:
+ - txn_id
+ - otp
+ type: object
+ VerifyResponse:
+ properties:
+ eka:
+ $ref: '#/components/schemas/RegistrationEkaIds'
+ description: Eka IDs, will be present if SkipState is abha_end
+ hint:
+ description: Hint for the mobile number
+ type:
+ - "null"
+ - string
+ profile:
+ $ref: '#/components/schemas/ProfileResponse'
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ token:
+ description: Access token for the user, will be present if SkipState is
+ abha_end
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ VerifyResponseType2:
+ properties:
+ eka:
+ $ref: '#/components/schemas/RegistrationEkaIds'
+ hint:
+ type:
+ - "null"
+ - string
+ profile:
+ $ref: '#/components/schemas/ProfileResponse'
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ token:
+ type:
+ - "null"
+ - string
+ txn_id:
+ description: Transaction ID received in the /init API
+ type: string
+ type: object
+ VerifyResponseType3:
+ properties:
+ abha_profiles:
+ description: ABHA profiles, will be present if user has created ABHA.
+ items:
+ $ref: '#/components/schemas/VerifyAbhaProfile'
+ type:
+ - array
+ - "null"
+ skip_state:
+ enum:
+ - abha_end
+ - confirm_mobile_otp
+ - abha_select
+ - abha_create
+ type: string
+ txn_id:
+ type: string
+ type: object
+ VerifyResponseType4:
+ properties:
+ token:
+ description: Access token for the user
+ type:
+ - "null"
+ - string
+ type: object
+ securitySchemes:
+ authApiKey:
+ in: header
+ name: token-provider
+ type: apiKey
diff --git a/sdks/golang/auth/auth.go b/sdks/golang/auth/auth.go
new file mode 100644
index 00000000..1cf5de40
--- /dev/null
+++ b/sdks/golang/auth/auth.go
@@ -0,0 +1,37 @@
+package auth
+
+import (
+ "github.com/microsoft/kiota-abstractions-go/authentication"
+ "sync"
+)
+
+type EkaJwtProvider interface {
+ authentication.AuthenticationProvider
+}
+
+type ekaAuthProvider struct {
+
+ // Connect Client Id
+ clientId string
+
+ // Connect Client Secret
+ clientSecret string
+
+ // API Token
+ apiKey string
+
+ // in memory cache to hold jwt for reuse
+ ekaJwtCache *sync.Map
+
+ // Eka API host for Auth request.
+ host string
+}
+
+func NewEkaJWTProvider(clientId, clientSecret, apiKey string) (EkaJwtProvider, error) {
+ return &ekaAuthProvider{
+ apiKey: apiKey,
+ clientId: clientId,
+ clientSecret: clientSecret,
+ ekaJwtCache: &sync.Map{},
+ }, nil
+}
diff --git a/sdks/golang/auth/auth_impl_authenticate.go b/sdks/golang/auth/auth_impl_authenticate.go
new file mode 100644
index 00000000..3befc4bb
--- /dev/null
+++ b/sdks/golang/auth/auth_impl_authenticate.go
@@ -0,0 +1,24 @@
+package auth
+
+import (
+ "context"
+ "errors"
+ kiota_abs "github.com/microsoft/kiota-abstractions-go"
+)
+
+func (ea *ekaAuthProvider) AuthenticateRequest(ctx context.Context, request *kiota_abs.RequestInformation,
+ additionalAuthenticationContext map[string]interface{}) error {
+
+ if request == nil {
+ return errors.New("request cannot be nil")
+ }
+
+ // Get the JWT token
+ token, err := ea.getJwtToken(ctx, ea.clientId, ea.clientSecret, ea.apiKey)
+ if err != nil {
+ return err
+ }
+
+ request.Headers.Add("auth", token)
+ return nil
+}
diff --git a/sdks/golang/auth/auth_impl_get_jwt.go b/sdks/golang/auth/auth_impl_get_jwt.go
new file mode 100644
index 00000000..ae2aad1d
--- /dev/null
+++ b/sdks/golang/auth/auth_impl_get_jwt.go
@@ -0,0 +1,68 @@
+package auth
+
+import (
+ "context"
+ "errors"
+ "time"
+)
+
+type tokenStruct struct {
+ accessToken string
+ refreshToken string
+ accessTokenExpiryTime time.Time
+ refreshTokenExpiryTime time.Time
+}
+
+func newTokenStruct(tsNew *LoginResponse) *tokenStruct {
+ return &tokenStruct{
+ accessToken: tsNew.AccessToken,
+ refreshToken: tsNew.RefreshToken,
+ accessTokenExpiryTime: time.Now().Add(time.Duration(tsNew.ExpiresIn) * time.Second),
+ refreshTokenExpiryTime: time.Now().Add(time.Duration(tsNew.RefreshExpiresIn) * time.Second),
+ }
+}
+
+func makeCacheKey(clientId, clientSecret, apiToken string) string {
+ return clientId + clientSecret + apiToken
+}
+
+func (ea *ekaAuthProvider) getJwtToken(ctx context.Context, clientId, clientSecret, apiToken string) (string, error) {
+
+ if clientSecret == "" {
+ return "", errors.New("clientSecret cannot be empty")
+ }
+
+ if clientId == "" {
+ return "", errors.New("clientId cannot be empty")
+ }
+
+ cacheKey := makeCacheKey(clientId, clientSecret, apiToken)
+ cached, ok := ea.ekaJwtCache.Load(cacheKey)
+ if !ok {
+ return ea.getTokenBasedOnExpiry(ctx, nil)
+ }
+
+ cachedStruct, ok := cached.(*tokenStruct)
+ if ok {
+ return ea.getTokenBasedOnExpiry(ctx, cachedStruct)
+ }
+
+ return "", errors.New("error while getting token from cache")
+}
+
+func (ea *ekaAuthProvider) getTokenBasedOnExpiry(ctx context.Context, ts *tokenStruct) (string, error) {
+
+ if ts != nil && ts.accessTokenExpiryTime.Before(time.Now()) {
+ // Access token has not expired return the same token
+ return ts.accessToken, nil
+ }
+
+ tsNew, err := ea.reLogin(ctx, ea.clientId, ea.clientSecret, ea.apiKey)
+ if err != nil {
+ return "", err
+ }
+
+ ts = newTokenStruct(tsNew)
+ ea.ekaJwtCache.Store(makeCacheKey(ea.clientId, ea.clientSecret, ea.apiKey), ts)
+ return ts.accessToken, nil
+}
diff --git a/sdks/golang/auth/auth_impl_login.go b/sdks/golang/auth/auth_impl_login.go
new file mode 100644
index 00000000..e36763be
--- /dev/null
+++ b/sdks/golang/auth/auth_impl_login.go
@@ -0,0 +1,54 @@
+package auth
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "fmt"
+ "net/http"
+)
+
+type loginReq struct {
+ ClientId string `json:"client_id"`
+ ClientSecret string `json:"client_secret"`
+ ApiKey string `json:"api_key"`
+}
+
+type LoginResponse struct {
+ AccessToken string `json:"access_token"`
+ ExpiresIn int `json:"expires_in"`
+ RefreshExpiresIn int `json:"refresh_expires_in"`
+ RefreshToken string `json:"refresh_token"`
+}
+
+func (ea *ekaAuthProvider) reLogin(ctx context.Context, clientId, clientSecret, apiToken string) (
+ *LoginResponse, error) {
+
+ url := fmt.Sprintf("%s/connect-auth/v1/account/login", ea.host)
+
+ lr := loginReq{
+ ClientId: clientId,
+ ClientSecret: clientSecret,
+ ApiKey: apiToken,
+ }
+ lrJson, err := json.Marshal(lr)
+ if err != nil {
+ return nil, err
+ }
+
+ req, _ := http.NewRequestWithContext(ctx, "POST", url, bytes.NewReader(lrJson))
+
+ req.Header.Add("Content-Type", "application/json")
+
+ res, _ := http.DefaultClient.Do(req)
+
+ defer res.Body.Close()
+
+ loginResp := &LoginResponse{}
+ err = json.NewDecoder(res.Body).Decode(loginResp)
+ if err != nil {
+ return nil, err
+ }
+
+ return loginResp, nil
+}
diff --git a/sdks/golang/client.go b/sdks/golang/client.go
new file mode 100644
index 00000000..db3a1176
--- /dev/null
+++ b/sdks/golang/client.go
@@ -0,0 +1,27 @@
+package abdm_client
+
+import (
+ "context"
+ tokenprovider "github.com/eka-care/eka-docs/sdks/golang/auth"
+ "github.com/eka-care/eka-docs/sdks/golang/client"
+ bundle "github.com/microsoft/kiota-bundle-go"
+)
+
+func EkaClient(ctx context.Context, clientId, clientSecret, apiKey string) (*client.AbdmClient, error) {
+
+ ekaJwtProvider, err := tokenprovider.NewEkaJWTProvider(clientId, clientSecret, apiKey)
+ if err != nil {
+ return nil, err
+ }
+
+ // Create request adapter
+ kiotaRequestAdapter, err := bundle.NewDefaultRequestAdapter(ekaJwtProvider)
+ if err != nil {
+ return nil, err
+ }
+
+ // Create the API client
+ ekaClient := client.NewAbdmClient(kiotaRequestAdapter)
+
+ return ekaClient, nil
+}
diff --git a/sdks/golang/client/abdm/abdm_request_builder.go b/sdks/golang/client/abdm/abdm_request_builder.go
new file mode 100644
index 00000000..879e2ab2
--- /dev/null
+++ b/sdks/golang/client/abdm/abdm_request_builder.go
@@ -0,0 +1,30 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// AbdmRequestBuilder builds and executes requests for operations under \golang
+type AbdmRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewAbdmRequestBuilderInternal instantiates a new AbdmRequestBuilder and sets the default values.
+func NewAbdmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AbdmRequestBuilder {
+ m := &AbdmRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang", pathParameters),
+ }
+ return m
+}
+
+// NewAbdmRequestBuilder instantiates a new AbdmRequestBuilder and sets the default values.
+func NewAbdmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AbdmRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewAbdmRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// V1 the v1 property
+func (m *AbdmRequestBuilder) V1() *V1RequestBuilder {
+ return NewV1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1/profile/asset/qr/get_format_query_parameter_type.go b/sdks/golang/client/abdm/v1/profile/asset/qr/get_format_query_parameter_type.go
new file mode 100644
index 00000000..f44ec873
--- /dev/null
+++ b/sdks/golang/client/abdm/v1/profile/asset/qr/get_format_query_parameter_type.go
@@ -0,0 +1,34 @@
+package qr
+import (
+ "errors"
+)
+//
+type GetFormatQueryParameterType int
+
+const (
+ JSON_GETFORMATQUERYPARAMETERTYPE GetFormatQueryParameterType = iota
+)
+
+func (i GetFormatQueryParameterType) String() string {
+ return []string{"json"}[i]
+}
+func ParseGetFormatQueryParameterType(v string) (any, error) {
+ result := JSON_GETFORMATQUERYPARAMETERTYPE
+ switch v {
+ case "json":
+ result = JSON_GETFORMATQUERYPARAMETERTYPE
+ default:
+ return 0, errors.New("Unknown GetFormatQueryParameterType value: " + v)
+ }
+ return &result, nil
+}
+func SerializeGetFormatQueryParameterType(values []GetFormatQueryParameterType) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i GetFormatQueryParameterType) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/abdm/v1/request/get_status_query_parameter_type.go b/sdks/golang/client/abdm/v1/request/get_status_query_parameter_type.go
new file mode 100644
index 00000000..9d39a291
--- /dev/null
+++ b/sdks/golang/client/abdm/v1/request/get_status_query_parameter_type.go
@@ -0,0 +1,46 @@
+package request
+import (
+ "errors"
+)
+// Status of the request
+type GetStatusQueryParameterType int
+
+const (
+ REQUESTED_GETSTATUSQUERYPARAMETERTYPE GetStatusQueryParameterType = iota
+ GRANTED_GETSTATUSQUERYPARAMETERTYPE
+ EXPIRED_GETSTATUSQUERYPARAMETERTYPE
+ DENIED_GETSTATUSQUERYPARAMETERTYPE
+ REVOKED_GETSTATUSQUERYPARAMETERTYPE
+)
+
+func (i GetStatusQueryParameterType) String() string {
+ return []string{"requested", "granted", "expired", "denied", "revoked"}[i]
+}
+func ParseGetStatusQueryParameterType(v string) (any, error) {
+ result := REQUESTED_GETSTATUSQUERYPARAMETERTYPE
+ switch v {
+ case "requested":
+ result = REQUESTED_GETSTATUSQUERYPARAMETERTYPE
+ case "granted":
+ result = GRANTED_GETSTATUSQUERYPARAMETERTYPE
+ case "expired":
+ result = EXPIRED_GETSTATUSQUERYPARAMETERTYPE
+ case "denied":
+ result = DENIED_GETSTATUSQUERYPARAMETERTYPE
+ case "revoked":
+ result = REVOKED_GETSTATUSQUERYPARAMETERTYPE
+ default:
+ return 0, errors.New("Unknown GetStatusQueryParameterType value: " + v)
+ }
+ return &result, nil
+}
+func SerializeGetStatusQueryParameterType(values []GetStatusQueryParameterType) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i GetStatusQueryParameterType) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/abdm/v1/request/get_type_query_parameter_type.go b/sdks/golang/client/abdm/v1/request/get_type_query_parameter_type.go
new file mode 100644
index 00000000..24eae1b6
--- /dev/null
+++ b/sdks/golang/client/abdm/v1/request/get_type_query_parameter_type.go
@@ -0,0 +1,40 @@
+package request
+import (
+ "errors"
+)
+// Request type
+type GetTypeQueryParameterType int
+
+const (
+ CONSENT_GETTYPEQUERYPARAMETERTYPE GetTypeQueryParameterType = iota
+ SUBSCRIPTION_GETTYPEQUERYPARAMETERTYPE
+ AUTHORIZATION_GETTYPEQUERYPARAMETERTYPE
+)
+
+func (i GetTypeQueryParameterType) String() string {
+ return []string{"consent", "subscription", "authorization"}[i]
+}
+func ParseGetTypeQueryParameterType(v string) (any, error) {
+ result := CONSENT_GETTYPEQUERYPARAMETERTYPE
+ switch v {
+ case "consent":
+ result = CONSENT_GETTYPEQUERYPARAMETERTYPE
+ case "subscription":
+ result = SUBSCRIPTION_GETTYPEQUERYPARAMETERTYPE
+ case "authorization":
+ result = AUTHORIZATION_GETTYPEQUERYPARAMETERTYPE
+ default:
+ return 0, errors.New("Unknown GetTypeQueryParameterType value: " + v)
+ }
+ return &result, nil
+}
+func SerializeGetTypeQueryParameterType(values []GetTypeQueryParameterType) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i GetTypeQueryParameterType) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/abdm/v1/requests/get_status_query_parameter_type.go b/sdks/golang/client/abdm/v1/requests/get_status_query_parameter_type.go
new file mode 100644
index 00000000..01ec0554
--- /dev/null
+++ b/sdks/golang/client/abdm/v1/requests/get_status_query_parameter_type.go
@@ -0,0 +1,46 @@
+package requests
+import (
+ "errors"
+)
+//
+type GetStatusQueryParameterType int
+
+const (
+ REQUESTED_GETSTATUSQUERYPARAMETERTYPE GetStatusQueryParameterType = iota
+ GRANTED_GETSTATUSQUERYPARAMETERTYPE
+ EXPIRED_GETSTATUSQUERYPARAMETERTYPE
+ DENIED_GETSTATUSQUERYPARAMETERTYPE
+ REVOKED_GETSTATUSQUERYPARAMETERTYPE
+)
+
+func (i GetStatusQueryParameterType) String() string {
+ return []string{"requested", "granted", "expired", "denied", "revoked"}[i]
+}
+func ParseGetStatusQueryParameterType(v string) (any, error) {
+ result := REQUESTED_GETSTATUSQUERYPARAMETERTYPE
+ switch v {
+ case "requested":
+ result = REQUESTED_GETSTATUSQUERYPARAMETERTYPE
+ case "granted":
+ result = GRANTED_GETSTATUSQUERYPARAMETERTYPE
+ case "expired":
+ result = EXPIRED_GETSTATUSQUERYPARAMETERTYPE
+ case "denied":
+ result = DENIED_GETSTATUSQUERYPARAMETERTYPE
+ case "revoked":
+ result = REVOKED_GETSTATUSQUERYPARAMETERTYPE
+ default:
+ return 0, errors.New("Unknown GetStatusQueryParameterType value: " + v)
+ }
+ return &result, nil
+}
+func SerializeGetStatusQueryParameterType(values []GetStatusQueryParameterType) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i GetStatusQueryParameterType) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/abdm/v1/requests/get_type_query_parameter_type.go b/sdks/golang/client/abdm/v1/requests/get_type_query_parameter_type.go
new file mode 100644
index 00000000..2ca6ed2d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1/requests/get_type_query_parameter_type.go
@@ -0,0 +1,43 @@
+package requests
+import (
+ "errors"
+)
+//
+type GetTypeQueryParameterType int
+
+const (
+ CONSENT_GETTYPEQUERYPARAMETERTYPE GetTypeQueryParameterType = iota
+ SUBSCRIPTION_GETTYPEQUERYPARAMETERTYPE
+ AUTHORIZATION_GETTYPEQUERYPARAMETERTYPE
+ ALL_GETTYPEQUERYPARAMETERTYPE
+)
+
+func (i GetTypeQueryParameterType) String() string {
+ return []string{"consent", "subscription", "authorization", "all"}[i]
+}
+func ParseGetTypeQueryParameterType(v string) (any, error) {
+ result := CONSENT_GETTYPEQUERYPARAMETERTYPE
+ switch v {
+ case "consent":
+ result = CONSENT_GETTYPEQUERYPARAMETERTYPE
+ case "subscription":
+ result = SUBSCRIPTION_GETTYPEQUERYPARAMETERTYPE
+ case "authorization":
+ result = AUTHORIZATION_GETTYPEQUERYPARAMETERTYPE
+ case "all":
+ result = ALL_GETTYPEQUERYPARAMETERTYPE
+ default:
+ return 0, errors.New("Unknown GetTypeQueryParameterType value: " + v)
+ }
+ return &result, nil
+}
+func SerializeGetTypeQueryParameterType(values []GetTypeQueryParameterType) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i GetTypeQueryParameterType) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_discover_link_confirm_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_discover_link_confirm_request_builder.go
new file mode 100644
index 00000000..6127371d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_discover_link_confirm_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsDiscoverLinkConfirmRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\discover\link\confirm
+type V1CareContextsDiscoverLinkConfirmRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1CareContextsDiscoverLinkConfirmRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1CareContextsDiscoverLinkConfirmRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1CareContextsDiscoverLinkConfirmRequestBuilderInternal instantiates a new ConfirmRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkConfirmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkConfirmRequestBuilder {
+ m := &V1CareContextsDiscoverLinkConfirmRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/discover/link/confirm", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsDiscoverLinkConfirmRequestBuilder instantiates a new ConfirmRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkConfirmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkConfirmRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsDiscoverLinkConfirmRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post confirm linking for discovered care context
+func (m *V1CareContextsDiscoverLinkConfirmRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ConfirmRequestable, requestConfiguration *V1CareContextsDiscoverLinkConfirmRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ConfirmResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateConfirmResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ConfirmResponseable), nil
+}
+
+// ToPostRequestInformation confirm linking for discovered care context
+func (m *V1CareContextsDiscoverLinkConfirmRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ConfirmRequestable, requestConfiguration *V1CareContextsDiscoverLinkConfirmRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1CareContextsDiscoverLinkConfirmRequestBuilder) WithUrl(rawUrl string) *V1CareContextsDiscoverLinkConfirmRequestBuilder {
+ return NewV1CareContextsDiscoverLinkConfirmRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_discover_link_init_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_discover_link_init_request_builder.go
new file mode 100644
index 00000000..dcfe66d4
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_discover_link_init_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsDiscoverLinkInitRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\discover\link\init
+type V1CareContextsDiscoverLinkInitRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1CareContextsDiscoverLinkInitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1CareContextsDiscoverLinkInitRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1CareContextsDiscoverLinkInitRequestBuilderInternal instantiates a new InitRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkInitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkInitRequestBuilder {
+ m := &V1CareContextsDiscoverLinkInitRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/discover/link/init", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsDiscoverLinkInitRequestBuilder instantiates a new InitRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkInitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkInitRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsDiscoverLinkInitRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post initialise the linking for discovered care context.
+func (m *V1CareContextsDiscoverLinkInitRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType3able, requestConfiguration *V1CareContextsDiscoverLinkInitRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType4able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateInitResponseType4FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType4able), nil
+}
+
+// ToPostRequestInformation initialise the linking for discovered care context.
+func (m *V1CareContextsDiscoverLinkInitRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType3able, requestConfiguration *V1CareContextsDiscoverLinkInitRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1CareContextsDiscoverLinkInitRequestBuilder) WithUrl(rawUrl string) *V1CareContextsDiscoverLinkInitRequestBuilder {
+ return NewV1CareContextsDiscoverLinkInitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_discover_link_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_discover_link_request_builder.go
new file mode 100644
index 00000000..6a2daa2a
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_discover_link_request_builder.go
@@ -0,0 +1,35 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsDiscoverLinkRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\discover\link
+type V1CareContextsDiscoverLinkRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Confirm the confirm property
+func (m *V1CareContextsDiscoverLinkRequestBuilder) Confirm() *V1CareContextsDiscoverLinkConfirmRequestBuilder {
+ return NewV1CareContextsDiscoverLinkConfirmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1CareContextsDiscoverLinkRequestBuilderInternal instantiates a new LinkRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkRequestBuilder {
+ m := &V1CareContextsDiscoverLinkRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/discover/link", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsDiscoverLinkRequestBuilder instantiates a new LinkRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverLinkRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverLinkRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsDiscoverLinkRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Init the init property
+func (m *V1CareContextsDiscoverLinkRequestBuilder) Init() *V1CareContextsDiscoverLinkInitRequestBuilder {
+ return NewV1CareContextsDiscoverLinkInitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_discover_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_discover_request_builder.go
new file mode 100644
index 00000000..975e9dff
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_discover_request_builder.go
@@ -0,0 +1,80 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsDiscoverRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\discover
+type V1CareContextsDiscoverRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1CareContextsDiscoverRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1CareContextsDiscoverRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1CareContextsDiscoverRequestBuilderInternal instantiates a new DiscoverRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverRequestBuilder {
+ m := &V1CareContextsDiscoverRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/discover", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsDiscoverRequestBuilder instantiates a new DiscoverRequestBuilder and sets the default values.
+func NewV1CareContextsDiscoverRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsDiscoverRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsDiscoverRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Link the link property
+func (m *V1CareContextsDiscoverRequestBuilder) Link() *V1CareContextsDiscoverLinkRequestBuilder {
+ return NewV1CareContextsDiscoverLinkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Post aBDM allows a user to find their health records from any health facility they have visited via the discovery process. Discover API returns any unlinked care-context for the ABHA User.
+func (m *V1CareContextsDiscoverRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DiscoverRequestable, requestConfiguration *V1CareContextsDiscoverRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DiscoverResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGerrorErrorRespFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateDiscoverResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DiscoverResponseable), nil
+}
+
+// ToPostRequestInformation aBDM allows a user to find their health records from any health facility they have visited via the discovery process. Discover API returns any unlinked care-context for the ABHA User.
+func (m *V1CareContextsDiscoverRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DiscoverRequestable, requestConfiguration *V1CareContextsDiscoverRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1CareContextsDiscoverRequestBuilder) WithUrl(rawUrl string) *V1CareContextsDiscoverRequestBuilder {
+ return NewV1CareContextsDiscoverRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_linked_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_linked_request_builder.go
new file mode 100644
index 00000000..94469e99
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_linked_request_builder.go
@@ -0,0 +1,78 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsLinkedRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\linked
+type V1CareContextsLinkedRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1CareContextsLinkedRequestBuilderGetQueryParameters
+type V1CareContextsLinkedRequestBuilderGetQueryParameters struct {
+ //
+ Hip_id *string `uriparametername:"hip_id"`
+}
+
+// V1CareContextsLinkedRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1CareContextsLinkedRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+ // Request query parameters
+ QueryParameters *V1CareContextsLinkedRequestBuilderGetQueryParameters
+}
+
+// NewV1CareContextsLinkedRequestBuilderInternal instantiates a new LinkedRequestBuilder and sets the default values.
+func NewV1CareContextsLinkedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsLinkedRequestBuilder {
+ m := &V1CareContextsLinkedRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/linked?hip_id={hip_id}", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsLinkedRequestBuilder instantiates a new LinkedRequestBuilder and sets the default values.
+func NewV1CareContextsLinkedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsLinkedRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsLinkedRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1CareContextsLinkedRequestBuilder) Get(ctx context.Context, requestConfiguration *V1CareContextsLinkedRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.RecordsResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateRecordsResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.RecordsResponseable), nil
+}
+func (m *V1CareContextsLinkedRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1CareContextsLinkedRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ if requestConfiguration.QueryParameters != nil {
+ requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
+ }
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1CareContextsLinkedRequestBuilder) WithUrl(rawUrl string) *V1CareContextsLinkedRequestBuilder {
+ return NewV1CareContextsLinkedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_providers_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_providers_request_builder.go
new file mode 100644
index 00000000..0542509a
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_providers_request_builder.go
@@ -0,0 +1,67 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsProvidersRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts\providers
+type V1CareContextsProvidersRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1CareContextsProvidersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1CareContextsProvidersRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1CareContextsProvidersRequestBuilderInternal instantiates a new ProvidersRequestBuilder and sets the default values.
+func NewV1CareContextsProvidersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsProvidersRequestBuilder {
+ m := &V1CareContextsProvidersRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts/providers", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsProvidersRequestBuilder instantiates a new ProvidersRequestBuilder and sets the default values.
+func NewV1CareContextsProvidersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsProvidersRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsProvidersRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1CareContextsProvidersRequestBuilder) Get(ctx context.Context, requestConfiguration *V1CareContextsProvidersRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProviderResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateProviderResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProviderResponseable), nil
+}
+func (m *V1CareContextsProvidersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1CareContextsProvidersRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1CareContextsProvidersRequestBuilder) WithUrl(rawUrl string) *V1CareContextsProvidersRequestBuilder {
+ return NewV1CareContextsProvidersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_care_contexts_request_builder.go b/sdks/golang/client/abdm/v1_care_contexts_request_builder.go
new file mode 100644
index 00000000..19dc6b94
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_care_contexts_request_builder.go
@@ -0,0 +1,40 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1CareContextsRequestBuilder builds and executes requests for operations under \golang\v1\care-contexts
+type V1CareContextsRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1CareContextsRequestBuilderInternal instantiates a new CareContextsRequestBuilder and sets the default values.
+func NewV1CareContextsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsRequestBuilder {
+ m := &V1CareContextsRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/care-contexts", pathParameters),
+ }
+ return m
+}
+
+// NewV1CareContextsRequestBuilder instantiates a new CareContextsRequestBuilder and sets the default values.
+func NewV1CareContextsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1CareContextsRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1CareContextsRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Discover the discover property
+func (m *V1CareContextsRequestBuilder) Discover() *V1CareContextsDiscoverRequestBuilder {
+ return NewV1CareContextsDiscoverRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Linked the linked property
+func (m *V1CareContextsRequestBuilder) Linked() *V1CareContextsLinkedRequestBuilder {
+ return NewV1CareContextsLinkedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Providers the providers property
+func (m *V1CareContextsRequestBuilder) Providers() *V1CareContextsProvidersRequestBuilder {
+ return NewV1CareContextsProvidersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_approve_request_builder.go b/sdks/golang/client/abdm/v1_consents_approve_request_builder.go
new file mode 100644
index 00000000..90290633
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_approve_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsApproveRequestBuilder builds and executes requests for operations under \golang\v1\consents\approve
+type V1ConsentsApproveRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsApproveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsApproveRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsApproveRequestBuilderInternal instantiates a new ApproveRequestBuilder and sets the default values.
+func NewV1ConsentsApproveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsApproveRequestBuilder {
+ m := &V1ConsentsApproveRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/approve", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsApproveRequestBuilder instantiates a new ApproveRequestBuilder and sets the default values.
+func NewV1ConsentsApproveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsApproveRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsApproveRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsApproveRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ApproveRequestable, requestConfiguration *V1ConsentsApproveRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsApproveRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ApproveRequestable, requestConfiguration *V1ConsentsApproveRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsApproveRequestBuilder) WithUrl(rawUrl string) *V1ConsentsApproveRequestBuilder {
+ return NewV1ConsentsApproveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_deny_request_builder.go b/sdks/golang/client/abdm/v1_consents_deny_request_builder.go
new file mode 100644
index 00000000..f5af3b5d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_deny_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsDenyRequestBuilder builds and executes requests for operations under \golang\v1\consents\deny
+type V1ConsentsDenyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsDenyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsDenyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsDenyRequestBuilderInternal instantiates a new DenyRequestBuilder and sets the default values.
+func NewV1ConsentsDenyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsDenyRequestBuilder {
+ m := &V1ConsentsDenyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/deny", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsDenyRequestBuilder instantiates a new DenyRequestBuilder and sets the default values.
+func NewV1ConsentsDenyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsDenyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsDenyRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsDenyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DenyRequestable, requestConfiguration *V1ConsentsDenyRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsDenyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DenyRequestable, requestConfiguration *V1ConsentsDenyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsDenyRequestBuilder) WithUrl(rawUrl string) *V1ConsentsDenyRequestBuilder {
+ return NewV1ConsentsDenyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_change_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_change_request_builder.go
new file mode 100644
index 00000000..77119bb0
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_change_request_builder.go
@@ -0,0 +1,72 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinChangeRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\change
+type V1ConsentsPinChangeRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinChangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinChangeRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinChangeRequestBuilderInternal instantiates a new ChangeRequestBuilder and sets the default values.
+func NewV1ConsentsPinChangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinChangeRequestBuilder {
+ m := &V1ConsentsPinChangeRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/change", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinChangeRequestBuilder instantiates a new ChangeRequestBuilder and sets the default values.
+func NewV1ConsentsPinChangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinChangeRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinChangeRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post change the consent pin by providing a old and new pin combination
+func (m *V1ConsentsPinChangeRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ChangeRequestable, requestConfiguration *V1ConsentsPinChangeRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+
+// ToPostRequestInformation change the consent pin by providing a old and new pin combination
+func (m *V1ConsentsPinChangeRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ChangeRequestable, requestConfiguration *V1ConsentsPinChangeRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinChangeRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinChangeRequestBuilder {
+ return NewV1ConsentsPinChangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_exists_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_exists_request_builder.go
new file mode 100644
index 00000000..7eb3b2ee
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_exists_request_builder.go
@@ -0,0 +1,71 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinExistsRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\exists
+type V1ConsentsPinExistsRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinExistsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinExistsRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinExistsRequestBuilderInternal instantiates a new ExistsRequestBuilder and sets the default values.
+func NewV1ConsentsPinExistsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinExistsRequestBuilder {
+ m := &V1ConsentsPinExistsRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/exists", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinExistsRequestBuilder instantiates a new ExistsRequestBuilder and sets the default values.
+func NewV1ConsentsPinExistsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinExistsRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinExistsRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Get returns if the user has already set the consent pin.
+func (m *V1ConsentsPinExistsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ConsentsPinExistsRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistResponseType2able, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateExistResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistResponseType2able), nil
+}
+
+// ToGetRequestInformation returns if the user has already set the consent pin.
+func (m *V1ConsentsPinExistsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ConsentsPinExistsRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinExistsRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinExistsRequestBuilder {
+ return NewV1ConsentsPinExistsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_forgot_init_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_forgot_init_request_builder.go
new file mode 100644
index 00000000..15754cf1
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_forgot_init_request_builder.go
@@ -0,0 +1,67 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinForgotInitRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\forgot\init
+type V1ConsentsPinForgotInitRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinForgotInitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinForgotInitRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinForgotInitRequestBuilderInternal instantiates a new InitRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotInitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotInitRequestBuilder {
+ m := &V1ConsentsPinForgotInitRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/forgot/init", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinForgotInitRequestBuilder instantiates a new InitRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotInitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotInitRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinForgotInitRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsPinForgotInitRequestBuilder) Post(ctx context.Context, requestConfiguration *V1ConsentsPinForgotInitRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType3able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateInitResponseType3FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType3able), nil
+}
+func (m *V1ConsentsPinForgotInitRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *V1ConsentsPinForgotInitRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinForgotInitRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinForgotInitRequestBuilder {
+ return NewV1ConsentsPinForgotInitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_forgot_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_forgot_request_builder.go
new file mode 100644
index 00000000..dd7a1096
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_forgot_request_builder.go
@@ -0,0 +1,35 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinForgotRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\forgot
+type V1ConsentsPinForgotRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1ConsentsPinForgotRequestBuilderInternal instantiates a new ForgotRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotRequestBuilder {
+ m := &V1ConsentsPinForgotRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/forgot", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinForgotRequestBuilder instantiates a new ForgotRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinForgotRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Init the init property
+func (m *V1ConsentsPinForgotRequestBuilder) Init() *V1ConsentsPinForgotInitRequestBuilder {
+ return NewV1ConsentsPinForgotInitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1ConsentsPinForgotRequestBuilder) Verify() *V1ConsentsPinForgotVerifyRequestBuilder {
+ return NewV1ConsentsPinForgotVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_forgot_verify_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_forgot_verify_request_builder.go
new file mode 100644
index 00000000..0d854f29
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_forgot_verify_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinForgotVerifyRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\forgot\verify
+type V1ConsentsPinForgotVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinForgotVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinForgotVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinForgotVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotVerifyRequestBuilder {
+ m := &V1ConsentsPinForgotVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/forgot/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinForgotVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1ConsentsPinForgotVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinForgotVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinForgotVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsPinForgotVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType5able, requestConfiguration *V1ConsentsPinForgotVerifyRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsPinForgotVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType5able, requestConfiguration *V1ConsentsPinForgotVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinForgotVerifyRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinForgotVerifyRequestBuilder {
+ return NewV1ConsentsPinForgotVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_request_builder.go
new file mode 100644
index 00000000..6970301b
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_request_builder.go
@@ -0,0 +1,55 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin
+type V1ConsentsPinRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Change the change property
+func (m *V1ConsentsPinRequestBuilder) Change() *V1ConsentsPinChangeRequestBuilder {
+ return NewV1ConsentsPinChangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1ConsentsPinRequestBuilderInternal instantiates a new PinRequestBuilder and sets the default values.
+func NewV1ConsentsPinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinRequestBuilder {
+ m := &V1ConsentsPinRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinRequestBuilder instantiates a new PinRequestBuilder and sets the default values.
+func NewV1ConsentsPinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Exists the exists property
+func (m *V1ConsentsPinRequestBuilder) Exists() *V1ConsentsPinExistsRequestBuilder {
+ return NewV1ConsentsPinExistsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Forgot the forgot property
+func (m *V1ConsentsPinRequestBuilder) Forgot() *V1ConsentsPinForgotRequestBuilder {
+ return NewV1ConsentsPinForgotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Reset the reset property
+func (m *V1ConsentsPinRequestBuilder) Reset() *V1ConsentsPinResetRequestBuilder {
+ return NewV1ConsentsPinResetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Set the set property
+func (m *V1ConsentsPinRequestBuilder) Set() *V1ConsentsPinSetRequestBuilder {
+ return NewV1ConsentsPinSetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1ConsentsPinRequestBuilder) Verify() *V1ConsentsPinVerifyRequestBuilder {
+ return NewV1ConsentsPinVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_reset_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_reset_request_builder.go
new file mode 100644
index 00000000..2d2cdf09
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_reset_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinResetRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\reset
+type V1ConsentsPinResetRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinResetRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinResetRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinResetRequestBuilderInternal instantiates a new ResetRequestBuilder and sets the default values.
+func NewV1ConsentsPinResetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinResetRequestBuilder {
+ m := &V1ConsentsPinResetRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/reset", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinResetRequestBuilder instantiates a new ResetRequestBuilder and sets the default values.
+func NewV1ConsentsPinResetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinResetRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinResetRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsPinResetRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SetRequestable, requestConfiguration *V1ConsentsPinResetRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsPinResetRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SetRequestable, requestConfiguration *V1ConsentsPinResetRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinResetRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinResetRequestBuilder {
+ return NewV1ConsentsPinResetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_set_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_set_request_builder.go
new file mode 100644
index 00000000..08c0bb5d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_set_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinSetRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\set
+type V1ConsentsPinSetRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinSetRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinSetRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinSetRequestBuilderInternal instantiates a new SetRequestBuilder and sets the default values.
+func NewV1ConsentsPinSetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinSetRequestBuilder {
+ m := &V1ConsentsPinSetRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/set", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinSetRequestBuilder instantiates a new SetRequestBuilder and sets the default values.
+func NewV1ConsentsPinSetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinSetRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinSetRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsPinSetRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SetRequestable, requestConfiguration *V1ConsentsPinSetRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsPinSetRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SetRequestable, requestConfiguration *V1ConsentsPinSetRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinSetRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinSetRequestBuilder {
+ return NewV1ConsentsPinSetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_pin_verify_request_builder.go b/sdks/golang/client/abdm/v1_consents_pin_verify_request_builder.go
new file mode 100644
index 00000000..1eb9dffa
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_pin_verify_request_builder.go
@@ -0,0 +1,72 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsPinVerifyRequestBuilder builds and executes requests for operations under \golang\v1\consents\pin\verify
+type V1ConsentsPinVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsPinVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsPinVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsPinVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1ConsentsPinVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinVerifyRequestBuilder {
+ m := &V1ConsentsPinVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/pin/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsPinVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1ConsentsPinVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsPinVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsPinVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post verify the consent pin to approve/revoke consents
+func (m *V1ConsentsPinVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType4able, requestConfiguration *V1ConsentsPinVerifyRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+
+// ToPostRequestInformation verify the consent pin to approve/revoke consents
+func (m *V1ConsentsPinVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType4able, requestConfiguration *V1ConsentsPinVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsPinVerifyRequestBuilder) WithUrl(rawUrl string) *V1ConsentsPinVerifyRequestBuilder {
+ return NewV1ConsentsPinVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_request_builder.go b/sdks/golang/client/abdm/v1_consents_request_builder.go
new file mode 100644
index 00000000..802e8921
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_request_builder.go
@@ -0,0 +1,45 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsRequestBuilder builds and executes requests for operations under \golang\v1\consents
+type V1ConsentsRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Approve the approve property
+func (m *V1ConsentsRequestBuilder) Approve() *V1ConsentsApproveRequestBuilder {
+ return NewV1ConsentsApproveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1ConsentsRequestBuilderInternal instantiates a new ConsentsRequestBuilder and sets the default values.
+func NewV1ConsentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsRequestBuilder {
+ m := &V1ConsentsRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsRequestBuilder instantiates a new ConsentsRequestBuilder and sets the default values.
+func NewV1ConsentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Deny the deny property
+func (m *V1ConsentsRequestBuilder) Deny() *V1ConsentsDenyRequestBuilder {
+ return NewV1ConsentsDenyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Pin the pin property
+func (m *V1ConsentsRequestBuilder) Pin() *V1ConsentsPinRequestBuilder {
+ return NewV1ConsentsPinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Revoke the revoke property
+func (m *V1ConsentsRequestBuilder) Revoke() *V1ConsentsRevokeRequestBuilder {
+ return NewV1ConsentsRevokeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_consents_revoke_request_builder.go b/sdks/golang/client/abdm/v1_consents_revoke_request_builder.go
new file mode 100644
index 00000000..7ef2d9ec
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_consents_revoke_request_builder.go
@@ -0,0 +1,68 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ConsentsRevokeRequestBuilder builds and executes requests for operations under \golang\v1\consents\revoke
+type V1ConsentsRevokeRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ConsentsRevokeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ConsentsRevokeRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ConsentsRevokeRequestBuilderInternal instantiates a new RevokeRequestBuilder and sets the default values.
+func NewV1ConsentsRevokeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsRevokeRequestBuilder {
+ m := &V1ConsentsRevokeRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/consents/revoke", pathParameters),
+ }
+ return m
+}
+
+// NewV1ConsentsRevokeRequestBuilder instantiates a new RevokeRequestBuilder and sets the default values.
+func NewV1ConsentsRevokeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ConsentsRevokeRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ConsentsRevokeRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ConsentsRevokeRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.RevokeRequestable, requestConfiguration *V1ConsentsRevokeRequestBuilderPostRequestConfiguration) error {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+func (m *V1ConsentsRevokeRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.RevokeRequestable, requestConfiguration *V1ConsentsRevokeRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ConsentsRevokeRequestBuilder) WithUrl(rawUrl string) *V1ConsentsRevokeRequestBuilder {
+ return NewV1ConsentsRevokeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_profile_asset_card_request_builder.go b/sdks/golang/client/abdm/v1_profile_asset_card_request_builder.go
new file mode 100644
index 00000000..393c2d0a
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_asset_card_request_builder.go
@@ -0,0 +1,71 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProfileAssetCardRequestBuilder builds and executes requests for operations under \golang\v1\profile\asset\card
+type V1ProfileAssetCardRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProfileAssetCardRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileAssetCardRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ProfileAssetCardRequestBuilderInternal instantiates a new CardRequestBuilder and sets the default values.
+func NewV1ProfileAssetCardRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetCardRequestBuilder {
+ m := &V1ProfileAssetCardRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/profile/asset/card", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProfileAssetCardRequestBuilder instantiates a new CardRequestBuilder and sets the default values.
+func NewV1ProfileAssetCardRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetCardRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProfileAssetCardRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Get fetch the ABHA card.Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.
+func (m *V1ProfileAssetCardRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ProfileAssetCardRequestBuilderGetRequestConfiguration) ([]byte, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.([]byte), nil
+}
+
+// ToGetRequestInformation fetch the ABHA card.Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.
+func (m *V1ProfileAssetCardRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ProfileAssetCardRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "image/png, application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProfileAssetCardRequestBuilder) WithUrl(rawUrl string) *V1ProfileAssetCardRequestBuilder {
+ return NewV1ProfileAssetCardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_profile_asset_qr_get_response.go b/sdks/golang/client/abdm/v1_profile_asset_qr_get_response.go
new file mode 100644
index 00000000..33ba9deb
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_asset_qr_get_response.go
@@ -0,0 +1,50 @@
+package abdm
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// V1ProfileAssetQrGetResponse
+type V1ProfileAssetQrGetResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewV1ProfileAssetQrGetResponse instantiates a new V1ProfileAssetQrGetResponse and sets the default values.
+func NewV1ProfileAssetQrGetResponse()(*V1ProfileAssetQrGetResponse) {
+ m := &V1ProfileAssetQrGetResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateV1ProfileAssetQrGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateV1ProfileAssetQrGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewV1ProfileAssetQrGetResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *V1ProfileAssetQrGetResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *V1ProfileAssetQrGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *V1ProfileAssetQrGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *V1ProfileAssetQrGetResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// V1ProfileAssetQrGetResponseable
+type V1ProfileAssetQrGetResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/abdm/v1_profile_asset_qr_request_builder.go b/sdks/golang/client/abdm/v1_profile_asset_qr_request_builder.go
new file mode 100644
index 00000000..67d8607e
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_asset_qr_request_builder.go
@@ -0,0 +1,107 @@
+package abdm
+
+import (
+ "context"
+ ie5ff1c2b748baa95e4161bd550d79136906382a1753d379c3989e0eef11dfc30 "github.com/eka-care/eka-docs/sdks/golang/client/abdm/v1/profile/asset/qr"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProfileAssetQrRequestBuilder builds and executes requests for operations under \golang\v1\profile\asset\qr
+type V1ProfileAssetQrRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProfileAssetQrRequestBuilderGetQueryParameters fetch the data for ABHA qr code display. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.There is no fixed structure for this JSON; it can vary depending on the creation of ABHA. Generate the QR code based on the content of the response body.
+type V1ProfileAssetQrRequestBuilderGetQueryParameters struct {
+ //
+ // Deprecated: This property is deprecated, use formatAsGetFormatQueryParameterType instead
+ Format *string `uriparametername:"format"`
+ //
+ FormatAsGetFormatQueryParameterType *ie5ff1c2b748baa95e4161bd550d79136906382a1753d379c3989e0eef11dfc30.GetFormatQueryParameterType `uriparametername:"format"`
+}
+
+// V1ProfileAssetQrRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileAssetQrRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+ // Request query parameters
+ QueryParameters *V1ProfileAssetQrRequestBuilderGetQueryParameters
+}
+
+// NewV1ProfileAssetQrRequestBuilderInternal instantiates a new QrRequestBuilder and sets the default values.
+func NewV1ProfileAssetQrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetQrRequestBuilder {
+ m := &V1ProfileAssetQrRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/profile/asset/qr{?format*}", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProfileAssetQrRequestBuilder instantiates a new QrRequestBuilder and sets the default values.
+func NewV1ProfileAssetQrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetQrRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProfileAssetQrRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Get fetch the data for ABHA qr code display. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.There is no fixed structure for this JSON; it can vary depending on the creation of ABHA. Generate the QR code based on the content of the response body.
+// Deprecated: This method is obsolete. Use GetAsQrGetResponse instead.
+func (m *V1ProfileAssetQrRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ProfileAssetQrRequestBuilderGetRequestConfiguration) (V1ProfileAssetQrResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1ProfileAssetQrResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(V1ProfileAssetQrResponseable), nil
+}
+
+// GetAsQrGetResponse fetch the data for ABHA qr code display. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.There is no fixed structure for this JSON; it can vary depending on the creation of ABHA. Generate the QR code based on the content of the response body.
+func (m *V1ProfileAssetQrRequestBuilder) GetAsQrGetResponse(ctx context.Context, requestConfiguration *V1ProfileAssetQrRequestBuilderGetRequestConfiguration) (V1ProfileAssetQrGetResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateV1ProfileAssetQrGetResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(V1ProfileAssetQrGetResponseable), nil
+}
+
+// ToGetRequestInformation fetch the data for ABHA qr code display. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.There is no fixed structure for this JSON; it can vary depending on the creation of ABHA. Generate the QR code based on the content of the response body.
+func (m *V1ProfileAssetQrRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ProfileAssetQrRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ if requestConfiguration.QueryParameters != nil {
+ requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
+ }
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProfileAssetQrRequestBuilder) WithUrl(rawUrl string) *V1ProfileAssetQrRequestBuilder {
+ return NewV1ProfileAssetQrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_profile_asset_qr_response.go b/sdks/golang/client/abdm/v1_profile_asset_qr_response.go
new file mode 100644
index 00000000..fb329a15
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_asset_qr_response.go
@@ -0,0 +1,28 @@
+package abdm
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// V1ProfileAssetQrResponse
+// Deprecated: This class is obsolete. Use qrGetResponse instead.
+type V1ProfileAssetQrResponse struct {
+ V1ProfileAssetQrGetResponse
+}
+// NewV1ProfileAssetQrResponse instantiates a new V1ProfileAssetQrResponse and sets the default values.
+func NewV1ProfileAssetQrResponse()(*V1ProfileAssetQrResponse) {
+ m := &V1ProfileAssetQrResponse{
+ V1ProfileAssetQrGetResponse: *NewV1ProfileAssetQrGetResponse(),
+ }
+ return m
+}
+// CreateV1ProfileAssetQrResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateV1ProfileAssetQrResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewV1ProfileAssetQrResponse(), nil
+}
+// V1ProfileAssetQrResponseable
+// Deprecated: This class is obsolete. Use qrGetResponse instead.
+type V1ProfileAssetQrResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ V1ProfileAssetQrGetResponseable
+}
diff --git a/sdks/golang/client/abdm/v1_profile_asset_request_builder.go b/sdks/golang/client/abdm/v1_profile_asset_request_builder.go
new file mode 100644
index 00000000..31048881
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_asset_request_builder.go
@@ -0,0 +1,35 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProfileAssetRequestBuilder builds and executes requests for operations under \golang\v1\profile\asset
+type V1ProfileAssetRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Card the card property
+func (m *V1ProfileAssetRequestBuilder) Card() *V1ProfileAssetCardRequestBuilder {
+ return NewV1ProfileAssetCardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1ProfileAssetRequestBuilderInternal instantiates a new AssetRequestBuilder and sets the default values.
+func NewV1ProfileAssetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetRequestBuilder {
+ m := &V1ProfileAssetRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/profile/asset", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProfileAssetRequestBuilder instantiates a new AssetRequestBuilder and sets the default values.
+func NewV1ProfileAssetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileAssetRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProfileAssetRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Qr the qr property
+func (m *V1ProfileAssetRequestBuilder) Qr() *V1ProfileAssetQrRequestBuilder {
+ return NewV1ProfileAssetQrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_profile_request_builder.go b/sdks/golang/client/abdm/v1_profile_request_builder.go
new file mode 100644
index 00000000..00048a10
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_request_builder.go
@@ -0,0 +1,157 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProfileRequestBuilder builds and executes requests for operations under \golang\v1\profile
+type V1ProfileRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProfileRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileRequestBuilderDeleteRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// V1ProfileRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// V1ProfileRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileRequestBuilderPatchRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// Asset the asset property
+func (m *V1ProfileRequestBuilder) Asset() *V1ProfileAssetRequestBuilder {
+ return NewV1ProfileAssetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1ProfileRequestBuilderInternal instantiates a new ProfileRequestBuilder and sets the default values.
+func NewV1ProfileRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileRequestBuilder {
+ m := &V1ProfileRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/profile", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProfileRequestBuilder instantiates a new ProfileRequestBuilder and sets the default values.
+func NewV1ProfileRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProfileRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Delete this endpoint removes the specified ABHA profile along with all associated documents, vital records, and any other related data from the system.Please note that the ABHA metadata will remain in the ABDM system, as ABDM does not provide a delete option
+func (m *V1ProfileRequestBuilder) Delete(ctx context.Context, requestConfiguration *V1ProfileRequestBuilderDeleteRequestConfiguration) error {
+ requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+
+// Get fetches the ABHA profile of the User. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.
+func (m *V1ProfileRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ProfileRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProfileResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateProfileResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProfileResponseable), nil
+}
+
+// Patch update Profile DetailsThe API expects all the fields returned by the [Get Profiles API](/api-reference/user-app/golang-connect/profile/details/profile-details) to be included in the PATCH request body.
+func (m *V1ProfileRequestBuilder) Patch(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DetailsRequestType2able, requestConfiguration *V1ProfileRequestBuilderPatchRequestConfiguration) error {
+ requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
+ if err != nil {
+ return err
+ }
+ return nil
+}
+
+// Share the share property
+func (m *V1ProfileRequestBuilder) Share() *V1ProfileShareRequestBuilder {
+ return NewV1ProfileShareRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// ToDeleteRequestInformation this endpoint removes the specified ABHA profile along with all associated documents, vital records, and any other related data from the system.Please note that the ABHA metadata will remain in the ABDM system, as ABDM does not provide a delete option
+func (m *V1ProfileRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *V1ProfileRequestBuilderDeleteRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// ToGetRequestInformation fetches the ABHA profile of the User. Please cache these results locally. We do not recommend calling this API on every page load. Evict the cache when there is profile update.
+func (m *V1ProfileRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ProfileRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// ToPatchRequestInformation update Profile DetailsThe API expects all the fields returned by the [Get Profiles API](/api-reference/user-app/golang-connect/profile/details/profile-details) to be included in the PATCH request body.
+func (m *V1ProfileRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DetailsRequestType2able, requestConfiguration *V1ProfileRequestBuilderPatchRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProfileRequestBuilder) WithUrl(rawUrl string) *V1ProfileRequestBuilder {
+ return NewV1ProfileRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_profile_share_request_builder.go b/sdks/golang/client/abdm/v1_profile_share_request_builder.go
new file mode 100644
index 00000000..63e21174
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_profile_share_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProfileShareRequestBuilder builds and executes requests for operations under \golang\v1\profile\share
+type V1ProfileShareRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProfileShareRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProfileShareRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ProfileShareRequestBuilderInternal instantiates a new ShareRequestBuilder and sets the default values.
+func NewV1ProfileShareRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileShareRequestBuilder {
+ m := &V1ProfileShareRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/profile/share", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProfileShareRequestBuilder instantiates a new ShareRequestBuilder and sets the default values.
+func NewV1ProfileShareRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProfileShareRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProfileShareRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post fetch the token from a hospital. Get the hip_id and counter_id by reading the QR code of the Hospital/Clinic. Use the device location for the location data
+func (m *V1ProfileShareRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ScanandshareRequestable, requestConfiguration *V1ProfileShareRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.HipQRScanShareProfileResponseV2able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateHipQRScanShareProfileResponseV2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.HipQRScanShareProfileResponseV2able), nil
+}
+
+// ToPostRequestInformation fetch the token from a hospital. Get the hip_id and counter_id by reading the QR code of the Hospital/Clinic. Use the device location for the location data
+func (m *V1ProfileShareRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ScanandshareRequestable, requestConfiguration *V1ProfileShareRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProfileShareRequestBuilder) WithUrl(rawUrl string) *V1ProfileShareRequestBuilder {
+ return NewV1ProfileShareRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_provider_request_builder.go b/sdks/golang/client/abdm/v1_provider_request_builder.go
new file mode 100644
index 00000000..dfb2ff9c
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_provider_request_builder.go
@@ -0,0 +1,37 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProviderRequestBuilder builds and executes requests for operations under \golang\v1\provider
+type V1ProviderRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// ByHip_id gets an item from the abdm_client/client.golang.v1.provider.item collection
+func (m *V1ProviderRequestBuilder) ByHip_id(hip_id string) *V1ProviderWithHip_ItemRequestBuilder {
+ urlTplParams := make(map[string]string)
+ for idx, item := range m.BaseRequestBuilder.PathParameters {
+ urlTplParams[idx] = item
+ }
+ if hip_id != "" {
+ urlTplParams["hip_id"] = hip_id
+ }
+ return NewV1ProviderWithHip_ItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1ProviderRequestBuilderInternal instantiates a new ProviderRequestBuilder and sets the default values.
+func NewV1ProviderRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProviderRequestBuilder {
+ m := &V1ProviderRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/provider", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProviderRequestBuilder instantiates a new ProviderRequestBuilder and sets the default values.
+func NewV1ProviderRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProviderRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProviderRequestBuilderInternal(urlParams, requestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_provider_with_hip_item_request_builder.go b/sdks/golang/client/abdm/v1_provider_with_hip_item_request_builder.go
new file mode 100644
index 00000000..8c6d0c9d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_provider_with_hip_item_request_builder.go
@@ -0,0 +1,67 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProviderWithHip_ItemRequestBuilder builds and executes requests for operations under \golang\v1\provider\{hip_id}
+type V1ProviderWithHip_ItemRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProviderWithHip_ItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProviderWithHip_ItemRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1ProviderWithHip_ItemRequestBuilderInternal instantiates a new WithHip_ItemRequestBuilder and sets the default values.
+func NewV1ProviderWithHip_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProviderWithHip_ItemRequestBuilder {
+ m := &V1ProviderWithHip_ItemRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/provider/{hip_id}", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProviderWithHip_ItemRequestBuilder instantiates a new WithHip_ItemRequestBuilder and sets the default values.
+func NewV1ProviderWithHip_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProviderWithHip_ItemRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProviderWithHip_ItemRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ProviderWithHip_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ProviderWithHip_ItemRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProviderResponseType2able, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateProviderResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ProviderResponseType2able), nil
+}
+func (m *V1ProviderWithHip_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ProviderWithHip_ItemRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProviderWithHip_ItemRequestBuilder) WithUrl(rawUrl string) *V1ProviderWithHip_ItemRequestBuilder {
+ return NewV1ProviderWithHip_ItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_providers_request_builder.go b/sdks/golang/client/abdm/v1_providers_request_builder.go
new file mode 100644
index 00000000..69276a98
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_providers_request_builder.go
@@ -0,0 +1,78 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1ProvidersRequestBuilder builds and executes requests for operations under \golang\v1\providers
+type V1ProvidersRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1ProvidersRequestBuilderGetQueryParameters
+type V1ProvidersRequestBuilderGetQueryParameters struct {
+ //
+ Name *string `uriparametername:"name"`
+}
+
+// V1ProvidersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1ProvidersRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+ // Request query parameters
+ QueryParameters *V1ProvidersRequestBuilderGetQueryParameters
+}
+
+// NewV1ProvidersRequestBuilderInternal instantiates a new ProvidersRequestBuilder and sets the default values.
+func NewV1ProvidersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProvidersRequestBuilder {
+ m := &V1ProvidersRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/providers{?name*}", pathParameters),
+ }
+ return m
+}
+
+// NewV1ProvidersRequestBuilder instantiates a new ProvidersRequestBuilder and sets the default values.
+func NewV1ProvidersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1ProvidersRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1ProvidersRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1ProvidersRequestBuilder) Get(ctx context.Context, requestConfiguration *V1ProvidersRequestBuilderGetRequestConfiguration) ([]byte, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.([]byte), nil
+}
+func (m *V1ProvidersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1ProvidersRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ if requestConfiguration.QueryParameters != nil {
+ requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
+ }
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1ProvidersRequestBuilder) WithUrl(rawUrl string) *V1ProvidersRequestBuilder {
+ return NewV1ProvidersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_create_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_create_request_builder.go
new file mode 100644
index 00000000..57c19e71
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_create_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarCreateRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\create
+type V1RegistrationAadhaarCreateRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarCreateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarCreateRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarCreateRequestBuilderInternal instantiates a new CreateRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarCreateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarCreateRequestBuilder {
+ m := &V1RegistrationAadhaarCreateRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/create", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarCreateRequestBuilder instantiates a new CreateRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarCreateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarCreateRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarCreateRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this API is used to create a new ABHA address
+func (m *V1RegistrationAadhaarCreateRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateRequestable, requestConfiguration *V1RegistrationAadhaarCreateRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateCreateResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResponseable), nil
+}
+
+// ToPostRequestInformation this API is used to create a new ABHA address
+func (m *V1RegistrationAadhaarCreateRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateRequestable, requestConfiguration *V1RegistrationAadhaarCreateRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarCreateRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarCreateRequestBuilder {
+ return NewV1RegistrationAadhaarCreateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_init_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_init_request_builder.go
new file mode 100644
index 00000000..932a6396
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_init_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarInitRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\init
+type V1RegistrationAadhaarInitRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarInitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarInitRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarInitRequestBuilderInternal instantiates a new InitRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarInitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarInitRequestBuilder {
+ m := &V1RegistrationAadhaarInitRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/init", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarInitRequestBuilder instantiates a new InitRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarInitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarInitRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarInitRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to initiate the Aadhaar registration process.
+func (m *V1RegistrationAadhaarInitRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestable, requestConfiguration *V1RegistrationAadhaarInitRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateInitResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseable), nil
+}
+
+// ToPostRequestInformation this endpoint is used to initiate the Aadhaar registration process.
+func (m *V1RegistrationAadhaarInitRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestable, requestConfiguration *V1RegistrationAadhaarInitRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarInitRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarInitRequestBuilder {
+ return NewV1RegistrationAadhaarInitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_request_builder.go
new file mode 100644
index 00000000..945e7cf7
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_request_builder.go
@@ -0,0 +1,35 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarMobileRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\mobile
+type V1RegistrationAadhaarMobileRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1RegistrationAadhaarMobileRequestBuilderInternal instantiates a new MobileRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileRequestBuilder {
+ m := &V1RegistrationAadhaarMobileRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/mobile", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarMobileRequestBuilder instantiates a new MobileRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarMobileRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Resend the resend property
+func (m *V1RegistrationAadhaarMobileRequestBuilder) Resend() *V1RegistrationAadhaarMobileResendRequestBuilder {
+ return NewV1RegistrationAadhaarMobileResendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1RegistrationAadhaarMobileRequestBuilder) Verify() *V1RegistrationAadhaarMobileVerifyRequestBuilder {
+ return NewV1RegistrationAadhaarMobileVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_resend_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_resend_request_builder.go
new file mode 100644
index 00000000..e37965c6
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_resend_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarMobileResendRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\mobile\resend
+type V1RegistrationAadhaarMobileResendRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarMobileResendRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarMobileResendRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarMobileResendRequestBuilderInternal instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileResendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileResendRequestBuilder {
+ m := &V1RegistrationAadhaarMobileResendRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/mobile/resend", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarMobileResendRequestBuilder instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileResendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileResendRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarMobileResendRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to resend the mobile otp for aadhaar registration process.
+func (m *V1RegistrationAadhaarMobileResendRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestType2able, requestConfiguration *V1RegistrationAadhaarMobileResendRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseType2able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResendResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseType2able), nil
+}
+
+// ToPostRequestInformation this endpoint is used to resend the mobile otp for aadhaar registration process.
+func (m *V1RegistrationAadhaarMobileResendRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestType2able, requestConfiguration *V1RegistrationAadhaarMobileResendRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarMobileResendRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarMobileResendRequestBuilder {
+ return NewV1RegistrationAadhaarMobileResendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_verify_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_verify_request_builder.go
new file mode 100644
index 00000000..88b55627
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_mobile_verify_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarMobileVerifyRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\mobile\verify
+type V1RegistrationAadhaarMobileVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarMobileVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarMobileVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarMobileVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileVerifyRequestBuilder {
+ m := &V1RegistrationAadhaarMobileVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/mobile/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarMobileVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarMobileVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarMobileVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarMobileVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this API operates on a skip logic basis. If the mobile number provided in the second step differs from the one linked to the Aadhaar, this API will be used to verify the new mobile number.
+func (m *V1RegistrationAadhaarMobileVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType2able, requestConfiguration *V1RegistrationAadhaarMobileVerifyRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType2able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateVerifyResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType2able), nil
+}
+
+// ToPostRequestInformation this API operates on a skip logic basis. If the mobile number provided in the second step differs from the one linked to the Aadhaar, this API will be used to verify the new mobile number.
+func (m *V1RegistrationAadhaarMobileVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType2able, requestConfiguration *V1RegistrationAadhaarMobileVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarMobileVerifyRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarMobileVerifyRequestBuilder {
+ return NewV1RegistrationAadhaarMobileVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_request_builder.go
new file mode 100644
index 00000000..82873fff
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_request_builder.go
@@ -0,0 +1,50 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar
+type V1RegistrationAadhaarRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1RegistrationAadhaarRequestBuilderInternal instantiates a new AadhaarRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarRequestBuilder {
+ m := &V1RegistrationAadhaarRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarRequestBuilder instantiates a new AadhaarRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Create the create property
+func (m *V1RegistrationAadhaarRequestBuilder) Create() *V1RegistrationAadhaarCreateRequestBuilder {
+ return NewV1RegistrationAadhaarCreateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Init the init property
+func (m *V1RegistrationAadhaarRequestBuilder) Init() *V1RegistrationAadhaarInitRequestBuilder {
+ return NewV1RegistrationAadhaarInitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Mobile the mobile property
+func (m *V1RegistrationAadhaarRequestBuilder) Mobile() *V1RegistrationAadhaarMobileRequestBuilder {
+ return NewV1RegistrationAadhaarMobileRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Resend the resend property
+func (m *V1RegistrationAadhaarRequestBuilder) Resend() *V1RegistrationAadhaarResendRequestBuilder {
+ return NewV1RegistrationAadhaarResendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1RegistrationAadhaarRequestBuilder) Verify() *V1RegistrationAadhaarVerifyRequestBuilder {
+ return NewV1RegistrationAadhaarVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_resend_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_resend_request_builder.go
new file mode 100644
index 00000000..106028f1
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_resend_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarResendRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\resend
+type V1RegistrationAadhaarResendRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarResendRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarResendRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarResendRequestBuilderInternal instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarResendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarResendRequestBuilder {
+ m := &V1RegistrationAadhaarResendRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/resend", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarResendRequestBuilder instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarResendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarResendRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarResendRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to resend a otp for aadhaar registration process.
+func (m *V1RegistrationAadhaarResendRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestable, requestConfiguration *V1RegistrationAadhaarResendRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResendResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseable), nil
+}
+
+// ToPostRequestInformation this endpoint is used to resend a otp for aadhaar registration process.
+func (m *V1RegistrationAadhaarResendRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestable, requestConfiguration *V1RegistrationAadhaarResendRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarResendRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarResendRequestBuilder {
+ return NewV1RegistrationAadhaarResendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_aadhaar_verify_request_builder.go b/sdks/golang/client/abdm/v1_registration_aadhaar_verify_request_builder.go
new file mode 100644
index 00000000..46b80ea2
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_aadhaar_verify_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAadhaarVerifyRequestBuilder builds and executes requests for operations under \golang\v1\registration\aadhaar\verify
+type V1RegistrationAadhaarVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAadhaarVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAadhaarVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAadhaarVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarVerifyRequestBuilder {
+ m := &V1RegistrationAadhaarVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/aadhaar/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAadhaarVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationAadhaarVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAadhaarVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAadhaarVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to verify Aadhaar otp generated for registration using Aadhaar.
+func (m *V1RegistrationAadhaarVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestable, requestConfiguration *V1RegistrationAadhaarVerifyRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateVerifyResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseable), nil
+}
+
+// ToPostRequestInformation this endpoint is used to verify Aadhaar otp generated for registration using Aadhaar.
+func (m *V1RegistrationAadhaarVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestable, requestConfiguration *V1RegistrationAadhaarVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAadhaarVerifyRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAadhaarVerifyRequestBuilder {
+ return NewV1RegistrationAadhaarVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_abha_check_request_builder.go b/sdks/golang/client/abdm/v1_registration_abha_check_request_builder.go
new file mode 100644
index 00000000..2aeace80
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_abha_check_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAbhaCheckRequestBuilder builds and executes requests for operations under \golang\v1\registration\abha\check
+type V1RegistrationAbhaCheckRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationAbhaCheckRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationAbhaCheckRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationAbhaCheckRequestBuilderInternal instantiates a new CheckRequestBuilder and sets the default values.
+func NewV1RegistrationAbhaCheckRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAbhaCheckRequestBuilder {
+ m := &V1RegistrationAbhaCheckRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/abha/check", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAbhaCheckRequestBuilder instantiates a new CheckRequestBuilder and sets the default values.
+func NewV1RegistrationAbhaCheckRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAbhaCheckRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAbhaCheckRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this API endpoint allows to check whether provided health id is already present in system.
+func (m *V1RegistrationAbhaCheckRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistRequestable, requestConfiguration *V1RegistrationAbhaCheckRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateExistResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistResponseable), nil
+}
+
+// ToPostRequestInformation this API endpoint allows to check whether provided health id is already present in system.
+func (m *V1RegistrationAbhaCheckRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ExistRequestable, requestConfiguration *V1RegistrationAbhaCheckRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationAbhaCheckRequestBuilder) WithUrl(rawUrl string) *V1RegistrationAbhaCheckRequestBuilder {
+ return NewV1RegistrationAbhaCheckRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_abha_request_builder.go b/sdks/golang/client/abdm/v1_registration_abha_request_builder.go
new file mode 100644
index 00000000..2de9c2cc
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_abha_request_builder.go
@@ -0,0 +1,30 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationAbhaRequestBuilder builds and executes requests for operations under \golang\v1\registration\abha
+type V1RegistrationAbhaRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Check the check property
+func (m *V1RegistrationAbhaRequestBuilder) Check() *V1RegistrationAbhaCheckRequestBuilder {
+ return NewV1RegistrationAbhaCheckRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1RegistrationAbhaRequestBuilderInternal instantiates a new AbhaRequestBuilder and sets the default values.
+func NewV1RegistrationAbhaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAbhaRequestBuilder {
+ m := &V1RegistrationAbhaRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/abha", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationAbhaRequestBuilder instantiates a new AbhaRequestBuilder and sets the default values.
+func NewV1RegistrationAbhaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationAbhaRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationAbhaRequestBuilderInternal(urlParams, requestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_create_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_create_request_builder.go
new file mode 100644
index 00000000..d56fb8d0
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_create_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileCreateRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile\create
+type V1RegistrationMobileCreateRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationMobileCreateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationMobileCreateRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationMobileCreateRequestBuilderInternal instantiates a new CreateRequestBuilder and sets the default values.
+func NewV1RegistrationMobileCreateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileCreateRequestBuilder {
+ m := &V1RegistrationMobileCreateRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile/create", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileCreateRequestBuilder instantiates a new CreateRequestBuilder and sets the default values.
+func NewV1RegistrationMobileCreateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileCreateRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileCreateRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this API is used to create a new ABHA address for the user.
+func (m *V1RegistrationMobileCreateRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateRequestType2able, requestConfiguration *V1RegistrationMobileCreateRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResponseType2able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateCreateResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResponseType2able), nil
+}
+
+// ToPostRequestInformation this API is used to create a new ABHA address for the user.
+func (m *V1RegistrationMobileCreateRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateRequestType2able, requestConfiguration *V1RegistrationMobileCreateRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationMobileCreateRequestBuilder) WithUrl(rawUrl string) *V1RegistrationMobileCreateRequestBuilder {
+ return NewV1RegistrationMobileCreateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_init_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_init_request_builder.go
new file mode 100644
index 00000000..0e20f5b2
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_init_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileInitRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile\init
+type V1RegistrationMobileInitRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationMobileInitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationMobileInitRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationMobileInitRequestBuilderInternal instantiates a new InitRequestBuilder and sets the default values.
+func NewV1RegistrationMobileInitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileInitRequestBuilder {
+ m := &V1RegistrationMobileInitRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile/init", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileInitRequestBuilder instantiates a new InitRequestBuilder and sets the default values.
+func NewV1RegistrationMobileInitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileInitRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileInitRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to initiate the registration process for a mobile number.
+func (m *V1RegistrationMobileInitRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType2able, requestConfiguration *V1RegistrationMobileInitRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType2able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateInitResponseType2FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType2able), nil
+}
+
+// ToPostRequestInformation this endpoint is used to initiate the registration process for a mobile number.
+func (m *V1RegistrationMobileInitRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType2able, requestConfiguration *V1RegistrationMobileInitRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationMobileInitRequestBuilder) WithUrl(rawUrl string) *V1RegistrationMobileInitRequestBuilder {
+ return NewV1RegistrationMobileInitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_login_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_login_request_builder.go
new file mode 100644
index 00000000..45ba3908
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_login_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileLoginRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile\login
+type V1RegistrationMobileLoginRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationMobileLoginRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationMobileLoginRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationMobileLoginRequestBuilderInternal instantiates a new LoginRequestBuilder and sets the default values.
+func NewV1RegistrationMobileLoginRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileLoginRequestBuilder {
+ m := &V1RegistrationMobileLoginRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile/login", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileLoginRequestBuilder instantiates a new LoginRequestBuilder and sets the default values.
+func NewV1RegistrationMobileLoginRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileLoginRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileLoginRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post if the user already has an existing ABHA address, use this API to select that ABHA address and proceed to log the user in using the chosen address.
+func (m *V1RegistrationMobileLoginRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.LoginRequestable, requestConfiguration *V1RegistrationMobileLoginRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.LoginResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateLoginResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.LoginResponseable), nil
+}
+
+// ToPostRequestInformation if the user already has an existing ABHA address, use this API to select that ABHA address and proceed to log the user in using the chosen address.
+func (m *V1RegistrationMobileLoginRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.LoginRequestable, requestConfiguration *V1RegistrationMobileLoginRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationMobileLoginRequestBuilder) WithUrl(rawUrl string) *V1RegistrationMobileLoginRequestBuilder {
+ return NewV1RegistrationMobileLoginRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_request_builder.go
new file mode 100644
index 00000000..ace7507c
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_request_builder.go
@@ -0,0 +1,50 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile
+type V1RegistrationMobileRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1RegistrationMobileRequestBuilderInternal instantiates a new MobileRequestBuilder and sets the default values.
+func NewV1RegistrationMobileRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileRequestBuilder {
+ m := &V1RegistrationMobileRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileRequestBuilder instantiates a new MobileRequestBuilder and sets the default values.
+func NewV1RegistrationMobileRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Create the create property
+func (m *V1RegistrationMobileRequestBuilder) Create() *V1RegistrationMobileCreateRequestBuilder {
+ return NewV1RegistrationMobileCreateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Init the init property
+func (m *V1RegistrationMobileRequestBuilder) Init() *V1RegistrationMobileInitRequestBuilder {
+ return NewV1RegistrationMobileInitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Login the login property
+func (m *V1RegistrationMobileRequestBuilder) Login() *V1RegistrationMobileLoginRequestBuilder {
+ return NewV1RegistrationMobileLoginRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Resend the resend property
+func (m *V1RegistrationMobileRequestBuilder) Resend() *V1RegistrationMobileResendRequestBuilder {
+ return NewV1RegistrationMobileResendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1RegistrationMobileRequestBuilder) Verify() *V1RegistrationMobileVerifyRequestBuilder {
+ return NewV1RegistrationMobileVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_resend_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_resend_request_builder.go
new file mode 100644
index 00000000..3f6af2cb
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_resend_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileResendRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile\resend
+type V1RegistrationMobileResendRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationMobileResendRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationMobileResendRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationMobileResendRequestBuilderInternal instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationMobileResendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileResendRequestBuilder {
+ m := &V1RegistrationMobileResendRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile/resend", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileResendRequestBuilder instantiates a new ResendRequestBuilder and sets the default values.
+func NewV1RegistrationMobileResendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileResendRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileResendRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint is used to resend a mobile registration request.
+func (m *V1RegistrationMobileResendRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestType3able, requestConfiguration *V1RegistrationMobileResendRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseType3able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateResendResponseType3FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendResponseType3able), nil
+}
+
+// ToPostRequestInformation this endpoint is used to resend a mobile registration request.
+func (m *V1RegistrationMobileResendRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ResendRequestType3able, requestConfiguration *V1RegistrationMobileResendRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationMobileResendRequestBuilder) WithUrl(rawUrl string) *V1RegistrationMobileResendRequestBuilder {
+ return NewV1RegistrationMobileResendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_mobile_verify_request_builder.go b/sdks/golang/client/abdm/v1_registration_mobile_verify_request_builder.go
new file mode 100644
index 00000000..751d7269
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_mobile_verify_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationMobileVerifyRequestBuilder builds and executes requests for operations under \golang\v1\registration\mobile\verify
+type V1RegistrationMobileVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationMobileVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationMobileVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationMobileVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationMobileVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileVerifyRequestBuilder {
+ m := &V1RegistrationMobileVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/mobile/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationMobileVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1RegistrationMobileVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationMobileVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationMobileVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this endpoint allows to verify a mobile otp.
+func (m *V1RegistrationMobileVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType3able, requestConfiguration *V1RegistrationMobileVerifyRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType3able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateVerifyResponseType3FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType3able), nil
+}
+
+// ToPostRequestInformation this endpoint allows to verify a mobile otp.
+func (m *V1RegistrationMobileVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType3able, requestConfiguration *V1RegistrationMobileVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationMobileVerifyRequestBuilder) WithUrl(rawUrl string) *V1RegistrationMobileVerifyRequestBuilder {
+ return NewV1RegistrationMobileVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_pincode_request_builder.go b/sdks/golang/client/abdm/v1_registration_pincode_request_builder.go
new file mode 100644
index 00000000..368e5036
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_pincode_request_builder.go
@@ -0,0 +1,37 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationPincodeRequestBuilder builds and executes requests for operations under \golang\v1\registration\pincode
+type V1RegistrationPincodeRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// ByPincode gets an item from the abdm_client/client.golang.v1.registration.pincode.item collection
+func (m *V1RegistrationPincodeRequestBuilder) ByPincode(pincode string) *V1RegistrationPincodeWithPincodeItemRequestBuilder {
+ urlTplParams := make(map[string]string)
+ for idx, item := range m.BaseRequestBuilder.PathParameters {
+ urlTplParams[idx] = item
+ }
+ if pincode != "" {
+ urlTplParams["pincode"] = pincode
+ }
+ return NewV1RegistrationPincodeWithPincodeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1RegistrationPincodeRequestBuilderInternal instantiates a new PincodeRequestBuilder and sets the default values.
+func NewV1RegistrationPincodeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationPincodeRequestBuilder {
+ m := &V1RegistrationPincodeRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/pincode", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationPincodeRequestBuilder instantiates a new PincodeRequestBuilder and sets the default values.
+func NewV1RegistrationPincodeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationPincodeRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationPincodeRequestBuilderInternal(urlParams, requestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_pincode_with_pincode_item_request_builder.go b/sdks/golang/client/abdm/v1_registration_pincode_with_pincode_item_request_builder.go
new file mode 100644
index 00000000..9ab8e53e
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_pincode_with_pincode_item_request_builder.go
@@ -0,0 +1,71 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationPincodeWithPincodeItemRequestBuilder builds and executes requests for operations under \golang\v1\registration\pincode\{pincode}
+type V1RegistrationPincodeWithPincodeItemRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationPincodeWithPincodeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationPincodeWithPincodeItemRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationPincodeWithPincodeItemRequestBuilderInternal instantiates a new WithPincodeItemRequestBuilder and sets the default values.
+func NewV1RegistrationPincodeWithPincodeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationPincodeWithPincodeItemRequestBuilder {
+ m := &V1RegistrationPincodeWithPincodeItemRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/pincode/{pincode}", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationPincodeWithPincodeItemRequestBuilder instantiates a new WithPincodeItemRequestBuilder and sets the default values.
+func NewV1RegistrationPincodeWithPincodeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationPincodeWithPincodeItemRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationPincodeWithPincodeItemRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Get this API endpoint is used to fetch pincode details.
+func (m *V1RegistrationPincodeWithPincodeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *V1RegistrationPincodeWithPincodeItemRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.PincodeResolvedPincodeDataable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreatePincodeResolvedPincodeDataFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.PincodeResolvedPincodeDataable), nil
+}
+
+// ToGetRequestInformation this API endpoint is used to fetch pincode details.
+func (m *V1RegistrationPincodeWithPincodeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1RegistrationPincodeWithPincodeItemRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationPincodeWithPincodeItemRequestBuilder) WithUrl(rawUrl string) *V1RegistrationPincodeWithPincodeItemRequestBuilder {
+ return NewV1RegistrationPincodeWithPincodeItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_request_builder.go b/sdks/golang/client/abdm/v1_registration_request_builder.go
new file mode 100644
index 00000000..b7c116b4
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_request_builder.go
@@ -0,0 +1,50 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationRequestBuilder builds and executes requests for operations under \golang\v1\registration
+type V1RegistrationRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Aadhaar the aadhaar property
+func (m *V1RegistrationRequestBuilder) Aadhaar() *V1RegistrationAadhaarRequestBuilder {
+ return NewV1RegistrationAadhaarRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Abha the abha property
+func (m *V1RegistrationRequestBuilder) Abha() *V1RegistrationAbhaRequestBuilder {
+ return NewV1RegistrationAbhaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1RegistrationRequestBuilderInternal instantiates a new RegistrationRequestBuilder and sets the default values.
+func NewV1RegistrationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationRequestBuilder {
+ m := &V1RegistrationRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationRequestBuilder instantiates a new RegistrationRequestBuilder and sets the default values.
+func NewV1RegistrationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Mobile the mobile property
+func (m *V1RegistrationRequestBuilder) Mobile() *V1RegistrationMobileRequestBuilder {
+ return NewV1RegistrationMobileRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Pincode the pincode property
+func (m *V1RegistrationRequestBuilder) Pincode() *V1RegistrationPincodeRequestBuilder {
+ return NewV1RegistrationPincodeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Suggest the suggest property
+func (m *V1RegistrationRequestBuilder) Suggest() *V1RegistrationSuggestRequestBuilder {
+ return NewV1RegistrationSuggestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_registration_suggest_request_builder.go b/sdks/golang/client/abdm/v1_registration_suggest_request_builder.go
new file mode 100644
index 00000000..39f5d33d
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_registration_suggest_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RegistrationSuggestRequestBuilder builds and executes requests for operations under \golang\v1\registration\suggest
+type V1RegistrationSuggestRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RegistrationSuggestRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RegistrationSuggestRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1RegistrationSuggestRequestBuilderInternal instantiates a new SuggestRequestBuilder and sets the default values.
+func NewV1RegistrationSuggestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationSuggestRequestBuilder {
+ m := &V1RegistrationSuggestRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/registration/suggest", pathParameters),
+ }
+ return m
+}
+
+// NewV1RegistrationSuggestRequestBuilder instantiates a new SuggestRequestBuilder and sets the default values.
+func NewV1RegistrationSuggestRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RegistrationSuggestRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RegistrationSuggestRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post this API endpoint is used to fetch some suggested abha id that are available on the basis of user details.
+func (m *V1RegistrationSuggestRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SuggestRequestable, requestConfiguration *V1RegistrationSuggestRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SuggestResponseable, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateSuggestResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SuggestResponseable), nil
+}
+
+// ToPostRequestInformation this API endpoint is used to fetch some suggested abha id that are available on the basis of user details.
+func (m *V1RegistrationSuggestRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.SuggestRequestable, requestConfiguration *V1RegistrationSuggestRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RegistrationSuggestRequestBuilder) WithUrl(rawUrl string) *V1RegistrationSuggestRequestBuilder {
+ return NewV1RegistrationSuggestRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_request_builder.go b/sdks/golang/client/abdm/v1_request_builder.go
new file mode 100644
index 00000000..81bdfdf1
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_request_builder.go
@@ -0,0 +1,70 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RequestBuilder builds and executes requests for operations under \golang\v1
+type V1RequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// CareContexts the careContexts property
+func (m *V1RequestBuilder) CareContexts() *V1CareContextsRequestBuilder {
+ return NewV1CareContextsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Consents the consents property
+func (m *V1RequestBuilder) Consents() *V1ConsentsRequestBuilder {
+ return NewV1ConsentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewV1RequestBuilderInternal instantiates a new V1RequestBuilder and sets the default values.
+func NewV1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestBuilder {
+ m := &V1RequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1", pathParameters),
+ }
+ return m
+}
+
+// NewV1RequestBuilder instantiates a new V1RequestBuilder and sets the default values.
+func NewV1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Profile the profile property
+func (m *V1RequestBuilder) Profile() *V1ProfileRequestBuilder {
+ return NewV1ProfileRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Provider the provider property
+func (m *V1RequestBuilder) Provider() *V1ProviderRequestBuilder {
+ return NewV1ProviderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Providers the providers property
+func (m *V1RequestBuilder) Providers() *V1ProvidersRequestBuilder {
+ return NewV1ProvidersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Registration the registration property
+func (m *V1RequestBuilder) Registration() *V1RegistrationRequestBuilder {
+ return NewV1RegistrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Request the request property
+func (m *V1RequestBuilder) Request() *V1RequestRequestBuilder {
+ return NewV1RequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Requests the requests property
+func (m *V1RequestBuilder) Requests() *V1RequestsRequestBuilder {
+ return NewV1RequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Session the session property
+func (m *V1RequestBuilder) Session() *V1SessionRequestBuilder {
+ return NewV1SessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_request_request_builder.go b/sdks/golang/client/abdm/v1_request_request_builder.go
new file mode 100644
index 00000000..f18215d5
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_request_request_builder.go
@@ -0,0 +1,89 @@
+package abdm
+
+import (
+ "context"
+ i837dc8c5882097efdb6929b74f4c8da74318387ee2599a8a0ee4eeb754ff75c1 "github.com/eka-care/eka-docs/sdks/golang/client/abdm/v1/request"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RequestRequestBuilder builds and executes requests for operations under \golang\v1\request
+type V1RequestRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RequestRequestBuilderGetQueryParameters
+type V1RequestRequestBuilderGetQueryParameters struct {
+ // Consent/Subscription/Authorization ID
+ Id *string `uriparametername:"id"`
+ // Status of the request
+ // Deprecated: This property is deprecated, use statusAsGetStatusQueryParameterType instead
+ Status *string `uriparametername:"status"`
+ // Status of the request
+ StatusAsGetStatusQueryParameterType *i837dc8c5882097efdb6929b74f4c8da74318387ee2599a8a0ee4eeb754ff75c1.GetStatusQueryParameterType `uriparametername:"status"`
+ // Request type
+ // Deprecated: This property is deprecated, use typeAsGetTypeQueryParameterType instead
+ Type *string `uriparametername:"type"`
+ // Request type
+ TypeAsGetTypeQueryParameterType *i837dc8c5882097efdb6929b74f4c8da74318387ee2599a8a0ee4eeb754ff75c1.GetTypeQueryParameterType `uriparametername:"type"`
+}
+
+// V1RequestRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RequestRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+ // Request query parameters
+ QueryParameters *V1RequestRequestBuilderGetQueryParameters
+}
+
+// NewV1RequestRequestBuilderInternal instantiates a new RequestRequestBuilder and sets the default values.
+func NewV1RequestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestRequestBuilder {
+ m := &V1RequestRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/request{?id*,status*,type*}", pathParameters),
+ }
+ return m
+}
+
+// NewV1RequestRequestBuilder instantiates a new RequestRequestBuilder and sets the default values.
+func NewV1RequestRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RequestRequestBuilderInternal(urlParams, requestAdapter)
+}
+func (m *V1RequestRequestBuilder) Get(ctx context.Context, requestConfiguration *V1RequestRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DetailsResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateDetailsResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.DetailsResponseable), nil
+}
+func (m *V1RequestRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1RequestRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ if requestConfiguration.QueryParameters != nil {
+ requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
+ }
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RequestRequestBuilder) WithUrl(rawUrl string) *V1RequestRequestBuilder {
+ return NewV1RequestRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_requests_request_builder.go b/sdks/golang/client/abdm/v1_requests_request_builder.go
new file mode 100644
index 00000000..d39e9cf7
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_requests_request_builder.go
@@ -0,0 +1,91 @@
+package abdm
+
+import (
+ "context"
+ i0cedb531106a2595849725e5d059596e1b6f3f0619fb4ef9cc14b082389fba41 "github.com/eka-care/eka-docs/sdks/golang/client/abdm/v1/requests"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1RequestsRequestBuilder builds and executes requests for operations under \golang\v1\requests
+type V1RequestsRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1RequestsRequestBuilderGetQueryParameters aPI to list all the Subscriptions / Authorization and Consent requests
+type V1RequestsRequestBuilderGetQueryParameters struct {
+ //
+ // Deprecated: This property is deprecated, use statusAsGetStatusQueryParameterType instead
+ Status *string `uriparametername:"status"`
+ //
+ StatusAsGetStatusQueryParameterType *i0cedb531106a2595849725e5d059596e1b6f3f0619fb4ef9cc14b082389fba41.GetStatusQueryParameterType `uriparametername:"status"`
+ //
+ // Deprecated: This property is deprecated, use typeAsGetTypeQueryParameterType instead
+ Type *string `uriparametername:"type"`
+ //
+ TypeAsGetTypeQueryParameterType *i0cedb531106a2595849725e5d059596e1b6f3f0619fb4ef9cc14b082389fba41.GetTypeQueryParameterType `uriparametername:"type"`
+}
+
+// V1RequestsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1RequestsRequestBuilderGetRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+ // Request query parameters
+ QueryParameters *V1RequestsRequestBuilderGetQueryParameters
+}
+
+// NewV1RequestsRequestBuilderInternal instantiates a new RequestsRequestBuilder and sets the default values.
+func NewV1RequestsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestsRequestBuilder {
+ m := &V1RequestsRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/requests{?status*,type*}", pathParameters),
+ }
+ return m
+}
+
+// NewV1RequestsRequestBuilder instantiates a new RequestsRequestBuilder and sets the default values.
+func NewV1RequestsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1RequestsRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1RequestsRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Get aPI to list all the Subscriptions / Authorization and Consent requests
+func (m *V1RequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *V1RequestsRequestBuilderGetRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ListsResponseable, error) {
+ requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateListsResponseFromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.ListsResponseable), nil
+}
+
+// ToGetRequestInformation aPI to list all the Subscriptions / Authorization and Consent requests
+func (m *V1RequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *V1RequestsRequestBuilderGetRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ if requestConfiguration.QueryParameters != nil {
+ requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters))
+ }
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1RequestsRequestBuilder) WithUrl(rawUrl string) *V1RequestsRequestBuilder {
+ return NewV1RequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_session_init_request_builder.go b/sdks/golang/client/abdm/v1_session_init_request_builder.go
new file mode 100644
index 00000000..cbe9a156
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_session_init_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1SessionInitRequestBuilder builds and executes requests for operations under \golang\v1\session\init
+type V1SessionInitRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1SessionInitRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1SessionInitRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1SessionInitRequestBuilderInternal instantiates a new InitRequestBuilder and sets the default values.
+func NewV1SessionInitRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionInitRequestBuilder {
+ m := &V1SessionInitRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/session/init", pathParameters),
+ }
+ return m
+}
+
+// NewV1SessionInitRequestBuilder instantiates a new InitRequestBuilder and sets the default values.
+func NewV1SessionInitRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionInitRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1SessionInitRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post generate mobile OTP for user session token
+func (m *V1SessionInitRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType4able, requestConfiguration *V1SessionInitRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType5able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateInitResponseType5FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitResponseType5able), nil
+}
+
+// ToPostRequestInformation generate mobile OTP for user session token
+func (m *V1SessionInitRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.InitRequestType4able, requestConfiguration *V1SessionInitRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1SessionInitRequestBuilder) WithUrl(rawUrl string) *V1SessionInitRequestBuilder {
+ return NewV1SessionInitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_session_request_builder.go b/sdks/golang/client/abdm/v1_session_request_builder.go
new file mode 100644
index 00000000..fc9b62d8
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_session_request_builder.go
@@ -0,0 +1,35 @@
+package abdm
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1SessionRequestBuilder builds and executes requests for operations under \golang\v1\session
+type V1SessionRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// NewV1SessionRequestBuilderInternal instantiates a new SessionRequestBuilder and sets the default values.
+func NewV1SessionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionRequestBuilder {
+ m := &V1SessionRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/session", pathParameters),
+ }
+ return m
+}
+
+// NewV1SessionRequestBuilder instantiates a new SessionRequestBuilder and sets the default values.
+func NewV1SessionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1SessionRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Init the init property
+func (m *V1SessionRequestBuilder) Init() *V1SessionInitRequestBuilder {
+ return NewV1SessionInitRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// Verify the verify property
+func (m *V1SessionRequestBuilder) Verify() *V1SessionVerifyRequestBuilder {
+ return NewV1SessionVerifyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm/v1_session_verify_request_builder.go b/sdks/golang/client/abdm/v1_session_verify_request_builder.go
new file mode 100644
index 00000000..dee60f85
--- /dev/null
+++ b/sdks/golang/client/abdm/v1_session_verify_request_builder.go
@@ -0,0 +1,75 @@
+package abdm
+
+import (
+ "context"
+ i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7 "github.com/eka-care/eka-docs/sdks/golang/client/models"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+)
+
+// V1SessionVerifyRequestBuilder builds and executes requests for operations under \golang\v1\session\verify
+type V1SessionVerifyRequestBuilder struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// V1SessionVerifyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type V1SessionVerifyRequestBuilderPostRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
+
+// NewV1SessionVerifyRequestBuilderInternal instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1SessionVerifyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionVerifyRequestBuilder {
+ m := &V1SessionVerifyRequestBuilder{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/golang/v1/session/verify", pathParameters),
+ }
+ return m
+}
+
+// NewV1SessionVerifyRequestBuilder instantiates a new VerifyRequestBuilder and sets the default values.
+func NewV1SessionVerifyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *V1SessionVerifyRequestBuilder {
+ urlParams := make(map[string]string)
+ urlParams["request-raw-url"] = rawUrl
+ return NewV1SessionVerifyRequestBuilderInternal(urlParams, requestAdapter)
+}
+
+// Post verify mobile OTP and get user session token
+func (m *V1SessionVerifyRequestBuilder) Post(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType6able, requestConfiguration *V1SessionVerifyRequestBuilderPostRequestConfiguration) (i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType4able, error) {
+ requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration)
+ if err != nil {
+ return nil, err
+ }
+ errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings{
+ "4XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ "5XX": i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateGenericErrorFromDiscriminatorValue,
+ }
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.CreateVerifyResponseType4FromDiscriminatorValue, errorMapping)
+ if err != nil {
+ return nil, err
+ }
+ if res == nil {
+ return nil, nil
+ }
+ return res.(i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyResponseType4able), nil
+}
+
+// ToPostRequestInformation verify mobile OTP and get user session token
+func (m *V1SessionVerifyRequestBuilder) ToPostRequestInformation(ctx context.Context, body i58c612fe3e5ec54ad94c41d439251ed1c7af6df05054720e7ce85897495ab0d7.VerifyRequestType6able, requestConfiguration *V1SessionVerifyRequestBuilderPostRequestConfiguration) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ requestInfo.Headers.TryAdd("Accept", "application/json")
+ err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body)
+ if err != nil {
+ return nil, err
+ }
+ return requestInfo, nil
+}
+
+// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+func (m *V1SessionVerifyRequestBuilder) WithUrl(rawUrl string) *V1SessionVerifyRequestBuilder {
+ return NewV1SessionVerifyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter)
+}
diff --git a/sdks/golang/client/abdm_client.go b/sdks/golang/client/abdm_client.go
new file mode 100644
index 00000000..22ffea17
--- /dev/null
+++ b/sdks/golang/client/abdm_client.go
@@ -0,0 +1,54 @@
+package client
+
+import (
+ i0fb73300deecba8f5ee7069675b4fe1599cc68c23104809bb4449e93aa9434cf "github.com/eka-care/eka-docs/sdks/golang/client/abdm"
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+ i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347 "github.com/microsoft/kiota-serialization-form-go"
+ i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488 "github.com/microsoft/kiota-serialization-json-go"
+ i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426 "github.com/microsoft/kiota-serialization-multipart-go"
+ i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83 "github.com/microsoft/kiota-serialization-text-go"
+)
+
+// AbdmClient the main entry point of the SDK, exposes the configuration and the fluent API.
+type AbdmClient struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
+}
+
+// Abdm the golang property
+func (m *AbdmClient) Abdm() *i0fb73300deecba8f5ee7069675b4fe1599cc68c23104809bb4449e93aa9434cf.AbdmRequestBuilder {
+ return i0fb73300deecba8f5ee7069675b4fe1599cc68c23104809bb4449e93aa9434cf.NewAbdmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
+}
+
+// NewAbdmClient instantiates a new AbdmClient and sets the default values.
+func NewAbdmClient(requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *AbdmClient {
+ m := &AbdmClient{
+ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}", map[string]string{}),
+ }
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory {
+ return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonSerializationWriterFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory {
+ return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextSerializationWriterFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory {
+ return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormSerializationWriterFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultSerializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriterFactory {
+ return i56887720f41ac882814261620b1c8459c4a992a0207af547c4453dd39fabc426.NewMultipartSerializationWriterFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory {
+ return i25911dc319edd61cbac496af7eab5ef20b6069a42515e22ec6a9bc97bf598488.NewJsonParseNodeFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory {
+ return i7294a22093d408fdca300f11b81a887d89c47b764af06c8b803e2323973fdb83.NewTextParseNodeFactory()
+ })
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RegisterDefaultDeserializer(func() i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNodeFactory {
+ return i4bcdc892e61ac17e2afc10b5e2b536b29f4fd6c1ad30f4a5a68df47495db3347.NewFormParseNodeFactory()
+ })
+ if m.BaseRequestBuilder.RequestAdapter.GetBaseUrl() == "" {
+ m.BaseRequestBuilder.RequestAdapter.SetBaseUrl("https://api.eka.care")
+ }
+ m.BaseRequestBuilder.PathParameters["baseurl"] = m.BaseRequestBuilder.RequestAdapter.GetBaseUrl()
+ return m
+}
diff --git a/sdks/golang/client/kiota-lock.json b/sdks/golang/client/kiota-lock.json
new file mode 100644
index 00000000..14ce605c
--- /dev/null
+++ b/sdks/golang/client/kiota-lock.json
@@ -0,0 +1,32 @@
+{
+ "descriptionHash": "EA4B5D875A6B7117F1E320D790F09C922CDAF0BEA9B38E521B74BA4AAF768BC21DC345BC7A726A0463B9948E4491579271E1ADBD713AC5AB70D4471270AF85E0",
+ "descriptionLocation": "../registration.yml",
+ "lockFileVersion": "1.0.0",
+ "kiotaVersion": "1.11.1",
+ "clientClassName": "AbdmClient",
+ "clientNamespaceName": "abdm_client/client",
+ "language": "Go",
+ "usesBackingStore": false,
+ "excludeBackwardCompatible": false,
+ "includeAdditionalData": true,
+ "serializers": [
+ "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory",
+ "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory"
+ ],
+ "deserializers": [
+ "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory",
+ "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory",
+ "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory"
+ ],
+ "structuredMimeTypes": [
+ "application/json",
+ "text/plain;q=0.9",
+ "application/x-www-form-urlencoded;q=0.2",
+ "multipart/form-data;q=0.1"
+ ],
+ "includePatterns": [],
+ "excludePatterns": [],
+ "disabledValidationRules": []
+}
\ No newline at end of file
diff --git a/sdks/golang/client/models/approve_request.go b/sdks/golang/client/models/approve_request.go
new file mode 100644
index 00000000..a7446856
--- /dev/null
+++ b/sdks/golang/client/models/approve_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ApproveRequest
+type ApproveRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The id property
+ id *string
+ // The pin_detail property
+ pin_detail CommonsPinDetailable
+}
+// NewApproveRequest instantiates a new ApproveRequest and sets the default values.
+func NewApproveRequest()(*ApproveRequest) {
+ m := &ApproveRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateApproveRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateApproveRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewApproveRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ApproveRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ApproveRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetId(val)
+ }
+ return nil
+ }
+ res["pin_detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsPinDetailFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPinDetail(val.(CommonsPinDetailable))
+ }
+ return nil
+ }
+ return res
+}
+// GetId gets the id property value. The id property
+func (m *ApproveRequest) GetId()(*string) {
+ return m.id
+}
+// GetPinDetail gets the pin_detail property value. The pin_detail property
+func (m *ApproveRequest) GetPinDetail()(CommonsPinDetailable) {
+ return m.pin_detail
+}
+// Serialize serializes information the current object
+func (m *ApproveRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("id", m.GetId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("pin_detail", m.GetPinDetail())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ApproveRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetId sets the id property value. The id property
+func (m *ApproveRequest) SetId(value *string)() {
+ m.id = value
+}
+// SetPinDetail sets the pin_detail property value. The pin_detail property
+func (m *ApproveRequest) SetPinDetail(value CommonsPinDetailable)() {
+ m.pin_detail = value
+}
+// ApproveRequestable
+type ApproveRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetId()(*string)
+ GetPinDetail()(CommonsPinDetailable)
+ SetId(value *string)()
+ SetPinDetail(value CommonsPinDetailable)()
+}
diff --git a/sdks/golang/client/models/change_request.go b/sdks/golang/client/models/change_request.go
new file mode 100644
index 00000000..d3c3f869
--- /dev/null
+++ b/sdks/golang/client/models/change_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ChangeRequest
+type ChangeRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The new property
+ new *string
+ // The old property
+ old *string
+}
+// NewChangeRequest instantiates a new ChangeRequest and sets the default values.
+func NewChangeRequest()(*ChangeRequest) {
+ m := &ChangeRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateChangeRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateChangeRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewChangeRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ChangeRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ChangeRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["new"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetNew(val)
+ }
+ return nil
+ }
+ res["old"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOld(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetNew gets the new property value. The new property
+func (m *ChangeRequest) GetNew()(*string) {
+ return m.new
+}
+// GetOld gets the old property value. The old property
+func (m *ChangeRequest) GetOld()(*string) {
+ return m.old
+}
+// Serialize serializes information the current object
+func (m *ChangeRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("new", m.GetNew())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("old", m.GetOld())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ChangeRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetNew sets the new property value. The new property
+func (m *ChangeRequest) SetNew(value *string)() {
+ m.new = value
+}
+// SetOld sets the old property value. The old property
+func (m *ChangeRequest) SetOld(value *string)() {
+ m.old = value
+}
+// ChangeRequestable
+type ChangeRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetNew()(*string)
+ GetOld()(*string)
+ SetNew(value *string)()
+ SetOld(value *string)()
+}
diff --git a/sdks/golang/client/models/commons_duration.go b/sdks/golang/client/models/commons_duration.go
new file mode 100644
index 00000000..02b820a0
--- /dev/null
+++ b/sdks/golang/client/models/commons_duration.go
@@ -0,0 +1,107 @@
+package models
+
+import (
+ i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CommonsDuration
+type CommonsDuration struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Start time of the consent
+ from *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+ // End time of the consent
+ to *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+}
+// NewCommonsDuration instantiates a new CommonsDuration and sets the default values.
+func NewCommonsDuration()(*CommonsDuration) {
+ m := &CommonsDuration{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCommonsDurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCommonsDurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCommonsDuration(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsDuration) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CommonsDuration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["from"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetFrom(val)
+ }
+ return nil
+ }
+ res["to"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTo(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetFrom gets the from property value. Start time of the consent
+func (m *CommonsDuration) GetFrom()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.from
+}
+// GetTo gets the to property value. End time of the consent
+func (m *CommonsDuration) GetTo()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.to
+}
+// Serialize serializes information the current object
+func (m *CommonsDuration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteTimeValue("from", m.GetFrom())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("to", m.GetTo())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsDuration) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetFrom sets the from property value. Start time of the consent
+func (m *CommonsDuration) SetFrom(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.from = value
+}
+// SetTo sets the to property value. End time of the consent
+func (m *CommonsDuration) SetTo(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.to = value
+}
+// CommonsDurationable
+type CommonsDurationable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetFrom()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ GetTo()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ SetFrom(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+ SetTo(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+}
diff --git a/sdks/golang/client/models/commons_hiu.go b/sdks/golang/client/models/commons_hiu.go
new file mode 100644
index 00000000..1309d6ff
--- /dev/null
+++ b/sdks/golang/client/models/commons_hiu.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CommonsHiu
+type CommonsHiu struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Health Information User ID
+ id *string
+ // Name of the Health Information User
+ name *string
+}
+// NewCommonsHiu instantiates a new CommonsHiu and sets the default values.
+func NewCommonsHiu()(*CommonsHiu) {
+ m := &CommonsHiu{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCommonsHiuFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCommonsHiuFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCommonsHiu(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsHiu) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CommonsHiu) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetId(val)
+ }
+ return nil
+ }
+ res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetName(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetId gets the id property value. Health Information User ID
+func (m *CommonsHiu) GetId()(*string) {
+ return m.id
+}
+// GetName gets the name property value. Name of the Health Information User
+func (m *CommonsHiu) GetName()(*string) {
+ return m.name
+}
+// Serialize serializes information the current object
+func (m *CommonsHiu) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("id", m.GetId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("name", m.GetName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsHiu) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetId sets the id property value. Health Information User ID
+func (m *CommonsHiu) SetId(value *string)() {
+ m.id = value
+}
+// SetName sets the name property value. Name of the Health Information User
+func (m *CommonsHiu) SetName(value *string)() {
+ m.name = value
+}
+// CommonsHiuable
+type CommonsHiuable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetId()(*string)
+ GetName()(*string)
+ SetId(value *string)()
+ SetName(value *string)()
+}
diff --git a/sdks/golang/client/models/commons_pin_detail.go b/sdks/golang/client/models/commons_pin_detail.go
new file mode 100644
index 00000000..c4686c54
--- /dev/null
+++ b/sdks/golang/client/models/commons_pin_detail.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CommonsPinDetail
+type CommonsPinDetail struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // PIN for the consent request
+ pin *string
+}
+// NewCommonsPinDetail instantiates a new CommonsPinDetail and sets the default values.
+func NewCommonsPinDetail()(*CommonsPinDetail) {
+ m := &CommonsPinDetail{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCommonsPinDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCommonsPinDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCommonsPinDetail(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsPinDetail) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CommonsPinDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["pin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPin(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetPin gets the pin property value. PIN for the consent request
+func (m *CommonsPinDetail) GetPin()(*string) {
+ return m.pin
+}
+// Serialize serializes information the current object
+func (m *CommonsPinDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("pin", m.GetPin())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsPinDetail) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetPin sets the pin property value. PIN for the consent request
+func (m *CommonsPinDetail) SetPin(value *string)() {
+ m.pin = value
+}
+// CommonsPinDetailable
+type CommonsPinDetailable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetPin()(*string)
+ SetPin(value *string)()
+}
diff --git a/sdks/golang/client/models/commons_purpose.go b/sdks/golang/client/models/commons_purpose.go
new file mode 100644
index 00000000..5338c421
--- /dev/null
+++ b/sdks/golang/client/models/commons_purpose.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CommonsPurpose
+type CommonsPurpose struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The code property
+ code *string
+ // The text property
+ text *string
+}
+// NewCommonsPurpose instantiates a new CommonsPurpose and sets the default values.
+func NewCommonsPurpose()(*CommonsPurpose) {
+ m := &CommonsPurpose{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCommonsPurposeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCommonsPurposeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCommonsPurpose(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsPurpose) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCode gets the code property value. The code property
+func (m *CommonsPurpose) GetCode()(*string) {
+ return m.code
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CommonsPurpose) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCode(val)
+ }
+ return nil
+ }
+ res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetText(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetText gets the text property value. The text property
+func (m *CommonsPurpose) GetText()(*string) {
+ return m.text
+}
+// Serialize serializes information the current object
+func (m *CommonsPurpose) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("code", m.GetCode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("text", m.GetText())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsPurpose) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCode sets the code property value. The code property
+func (m *CommonsPurpose) SetCode(value *string)() {
+ m.code = value
+}
+// SetText sets the text property value. The text property
+func (m *CommonsPurpose) SetText(value *string)() {
+ m.text = value
+}
+// CommonsPurposeable
+type CommonsPurposeable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCode()(*string)
+ GetText()(*string)
+ SetCode(value *string)()
+ SetText(value *string)()
+}
diff --git a/sdks/golang/client/models/commons_requester.go b/sdks/golang/client/models/commons_requester.go
new file mode 100644
index 00000000..77c3f993
--- /dev/null
+++ b/sdks/golang/client/models/commons_requester.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CommonsRequester
+type CommonsRequester struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Name of the requester.
+ name *string
+}
+// NewCommonsRequester instantiates a new CommonsRequester and sets the default values.
+func NewCommonsRequester()(*CommonsRequester) {
+ m := &CommonsRequester{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCommonsRequesterFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCommonsRequesterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCommonsRequester(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsRequester) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CommonsRequester) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetName(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetName gets the name property value. Name of the requester.
+func (m *CommonsRequester) GetName()(*string) {
+ return m.name
+}
+// Serialize serializes information the current object
+func (m *CommonsRequester) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("name", m.GetName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CommonsRequester) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetName sets the name property value. Name of the requester.
+func (m *CommonsRequester) SetName(value *string)() {
+ m.name = value
+}
+// CommonsRequesterable
+type CommonsRequesterable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetName()(*string)
+ SetName(value *string)()
+}
diff --git a/sdks/golang/client/models/confirm_request.go b/sdks/golang/client/models/confirm_request.go
new file mode 100644
index 00000000..3b5a3f8d
--- /dev/null
+++ b/sdks/golang/client/models/confirm_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ConfirmRequest
+type ConfirmRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The otp property
+ otp *string
+ // The txn_id property
+ txn_id *string
+}
+// NewConfirmRequest instantiates a new ConfirmRequest and sets the default values.
+func NewConfirmRequest()(*ConfirmRequest) {
+ m := &ConfirmRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateConfirmRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateConfirmRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewConfirmRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ConfirmRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ConfirmRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["otp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOtp(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetOtp gets the otp property value. The otp property
+func (m *ConfirmRequest) GetOtp()(*string) {
+ return m.otp
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *ConfirmRequest) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ConfirmRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("otp", m.GetOtp())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ConfirmRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetOtp sets the otp property value. The otp property
+func (m *ConfirmRequest) SetOtp(value *string)() {
+ m.otp = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *ConfirmRequest) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ConfirmRequestable
+type ConfirmRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetOtp()(*string)
+ GetTxnId()(*string)
+ SetOtp(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/confirm_response.go b/sdks/golang/client/models/confirm_response.go
new file mode 100644
index 00000000..ab1d100b
--- /dev/null
+++ b/sdks/golang/client/models/confirm_response.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ConfirmResponse
+type ConfirmResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The cc_ref_id property
+ cc_ref_id *string
+ // The txn_id property
+ txn_id *string
+}
+// NewConfirmResponse instantiates a new ConfirmResponse and sets the default values.
+func NewConfirmResponse()(*ConfirmResponse) {
+ m := &ConfirmResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateConfirmResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateConfirmResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewConfirmResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ConfirmResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCcRefId gets the cc_ref_id property value. The cc_ref_id property
+func (m *ConfirmResponse) GetCcRefId()(*string) {
+ return m.cc_ref_id
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ConfirmResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["cc_ref_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCcRefId(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *ConfirmResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ConfirmResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("cc_ref_id", m.GetCcRefId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ConfirmResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCcRefId sets the cc_ref_id property value. The cc_ref_id property
+func (m *ConfirmResponse) SetCcRefId(value *string)() {
+ m.cc_ref_id = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *ConfirmResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ConfirmResponseable
+type ConfirmResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCcRefId()(*string)
+ GetTxnId()(*string)
+ SetCcRefId(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/create_request.go b/sdks/golang/client/models/create_request.go
new file mode 100644
index 00000000..04fdc41f
--- /dev/null
+++ b/sdks/golang/client/models/create_request.go
@@ -0,0 +1,116 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CreateRequest
+type CreateRequest struct {
+ // ABHA Address to be linked with the ABHA Number, example sudo@golang
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+
+// NewCreateRequest instantiates a new CreateRequest and sets the default values.
+func NewCreateRequest() *CreateRequest {
+ m := &CreateRequest{}
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+
+// CreateCreateRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCreateRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCreateRequest(), nil
+}
+
+// GetAbhaAddress gets the abha_address property value. ABHA Address to be linked with the ABHA Number, example sudo@golang
+func (m *CreateRequest) GetAbhaAddress() *string {
+ return m.abha_address
+}
+
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateRequest) GetAdditionalData() map[string]any {
+ return m.additionalData
+}
+
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CreateRequest) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error)
+ res["abha_address"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func(n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateRequest) GetTxnId() *string {
+ return m.txn_id
+}
+
+// Serialize serializes information the current object
+func (m *CreateRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// SetAbhaAddress sets the abha_address property value. ABHA Address to be linked with the ABHA Number, example sudo@golang
+func (m *CreateRequest) SetAbhaAddress(value *string) {
+ m.abha_address = value
+}
+
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateRequest) SetAdditionalData(value map[string]any) {
+ m.additionalData = value
+}
+
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateRequest) SetTxnId(value *string) {
+ m.txn_id = value
+}
+
+// CreateRequestable
+type CreateRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress() *string
+ GetTxnId() *string
+ SetAbhaAddress(value *string)
+ SetTxnId(value *string)
+}
diff --git a/sdks/golang/client/models/create_request_type2.go b/sdks/golang/client/models/create_request_type2.go
new file mode 100644
index 00000000..14ebc7d2
--- /dev/null
+++ b/sdks/golang/client/models/create_request_type2.go
@@ -0,0 +1,134 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CreateRequestType2
+type CreateRequestType2 struct {
+ // The abha_address property
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The profile property
+ profile DetailsRequestType2able
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewCreateRequestType2 instantiates a new CreateRequestType2 and sets the default values.
+func NewCreateRequestType2()(*CreateRequestType2) {
+ m := &CreateRequestType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCreateRequestType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCreateRequestType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCreateRequestType2(), nil
+}
+// GetAbhaAddress gets the abha_address property value. The abha_address property
+func (m *CreateRequestType2) GetAbhaAddress()(*string) {
+ return m.abha_address
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateRequestType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CreateRequestType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["abha_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateDetailsRequestType2FromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(DetailsRequestType2able))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetProfile gets the profile property value. The profile property
+func (m *CreateRequestType2) GetProfile()(DetailsRequestType2able) {
+ return m.profile
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateRequestType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *CreateRequestType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAbhaAddress sets the abha_address property value. The abha_address property
+func (m *CreateRequestType2) SetAbhaAddress(value *string)() {
+ m.abha_address = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateRequestType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *CreateRequestType2) SetProfile(value DetailsRequestType2able)() {
+ m.profile = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateRequestType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// CreateRequestType2able
+type CreateRequestType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress()(*string)
+ GetProfile()(DetailsRequestType2able)
+ GetTxnId()(*string)
+ SetAbhaAddress(value *string)()
+ SetProfile(value DetailsRequestType2able)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/create_response.go b/sdks/golang/client/models/create_response.go
new file mode 100644
index 00000000..7e430079
--- /dev/null
+++ b/sdks/golang/client/models/create_response.go
@@ -0,0 +1,191 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CreateResponse
+type CreateResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The eka property
+ eka RegistrationEkaIdsable
+ // Hint for the mobile number
+ hint *string
+ // The profile property
+ profile ProfileResponseable
+ // The skip_state property
+ skip_state *CreateResponse_skip_state
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewCreateResponse instantiates a new CreateResponse and sets the default values.
+func NewCreateResponse()(*CreateResponse) {
+ m := &CreateResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCreateResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCreateResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCreateResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetEka gets the eka property value. The eka property
+func (m *CreateResponse) GetEka()(RegistrationEkaIdsable) {
+ return m.eka
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CreateResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["eka"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateRegistrationEkaIdsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEka(val.(RegistrationEkaIdsable))
+ }
+ return nil
+ }
+ res["hint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHint(val)
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateProfileResponseFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(ProfileResponseable))
+ }
+ return nil
+ }
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseCreateResponse_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*CreateResponse_skip_state))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetHint gets the hint property value. Hint for the mobile number
+func (m *CreateResponse) GetHint()(*string) {
+ return m.hint
+}
+// GetProfile gets the profile property value. The profile property
+func (m *CreateResponse) GetProfile()(ProfileResponseable) {
+ return m.profile
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *CreateResponse) GetSkipState()(*CreateResponse_skip_state) {
+ return m.skip_state
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *CreateResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("eka", m.GetEka())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("hint", m.GetHint())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetEka sets the eka property value. The eka property
+func (m *CreateResponse) SetEka(value RegistrationEkaIdsable)() {
+ m.eka = value
+}
+// SetHint sets the hint property value. Hint for the mobile number
+func (m *CreateResponse) SetHint(value *string)() {
+ m.hint = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *CreateResponse) SetProfile(value ProfileResponseable)() {
+ m.profile = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *CreateResponse) SetSkipState(value *CreateResponse_skip_state)() {
+ m.skip_state = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *CreateResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// CreateResponseable
+type CreateResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetEka()(RegistrationEkaIdsable)
+ GetHint()(*string)
+ GetProfile()(ProfileResponseable)
+ GetSkipState()(*CreateResponse_skip_state)
+ GetTxnId()(*string)
+ SetEka(value RegistrationEkaIdsable)()
+ SetHint(value *string)()
+ SetProfile(value ProfileResponseable)()
+ SetSkipState(value *CreateResponse_skip_state)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/create_response_skip_state.go b/sdks/golang/client/models/create_response_skip_state.go
new file mode 100644
index 00000000..68d5fbba
--- /dev/null
+++ b/sdks/golang/client/models/create_response_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type CreateResponse_skip_state int
+
+const (
+ ABHA_END_CREATERESPONSE_SKIP_STATE CreateResponse_skip_state = iota
+ CONFIRM_MOBILE_OTP_CREATERESPONSE_SKIP_STATE
+ ABHA_SELECT_CREATERESPONSE_SKIP_STATE
+ ABHA_CREATE_CREATERESPONSE_SKIP_STATE
+)
+
+func (i CreateResponse_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseCreateResponse_skip_state(v string) (any, error) {
+ result := ABHA_END_CREATERESPONSE_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_CREATERESPONSE_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_CREATERESPONSE_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_CREATERESPONSE_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_CREATERESPONSE_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown CreateResponse_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeCreateResponse_skip_state(values []CreateResponse_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i CreateResponse_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/create_response_type2.go b/sdks/golang/client/models/create_response_type2.go
new file mode 100644
index 00000000..add8f7c9
--- /dev/null
+++ b/sdks/golang/client/models/create_response_type2.go
@@ -0,0 +1,163 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// CreateResponseType2
+type CreateResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The eka property
+ eka RegistrationEkaIdsable
+ // The profile property
+ profile ProfileResponseable
+ // The skip_state property
+ skip_state *CreateResponseType2_skip_state
+ // The success property
+ success *bool
+}
+// NewCreateResponseType2 instantiates a new CreateResponseType2 and sets the default values.
+func NewCreateResponseType2()(*CreateResponseType2) {
+ m := &CreateResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateCreateResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateCreateResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewCreateResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetEka gets the eka property value. The eka property
+func (m *CreateResponseType2) GetEka()(RegistrationEkaIdsable) {
+ return m.eka
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *CreateResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["eka"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateRegistrationEkaIdsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEka(val.(RegistrationEkaIdsable))
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateProfileResponseFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(ProfileResponseable))
+ }
+ return nil
+ }
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseCreateResponseType2_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*CreateResponseType2_skip_state))
+ }
+ return nil
+ }
+ res["success"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetBoolValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSuccess(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetProfile gets the profile property value. The profile property
+func (m *CreateResponseType2) GetProfile()(ProfileResponseable) {
+ return m.profile
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *CreateResponseType2) GetSkipState()(*CreateResponseType2_skip_state) {
+ return m.skip_state
+}
+// GetSuccess gets the success property value. The success property
+func (m *CreateResponseType2) GetSuccess()(*bool) {
+ return m.success
+}
+// Serialize serializes information the current object
+func (m *CreateResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("eka", m.GetEka())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteBoolValue("success", m.GetSuccess())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *CreateResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetEka sets the eka property value. The eka property
+func (m *CreateResponseType2) SetEka(value RegistrationEkaIdsable)() {
+ m.eka = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *CreateResponseType2) SetProfile(value ProfileResponseable)() {
+ m.profile = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *CreateResponseType2) SetSkipState(value *CreateResponseType2_skip_state)() {
+ m.skip_state = value
+}
+// SetSuccess sets the success property value. The success property
+func (m *CreateResponseType2) SetSuccess(value *bool)() {
+ m.success = value
+}
+// CreateResponseType2able
+type CreateResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetEka()(RegistrationEkaIdsable)
+ GetProfile()(ProfileResponseable)
+ GetSkipState()(*CreateResponseType2_skip_state)
+ GetSuccess()(*bool)
+ SetEka(value RegistrationEkaIdsable)()
+ SetProfile(value ProfileResponseable)()
+ SetSkipState(value *CreateResponseType2_skip_state)()
+ SetSuccess(value *bool)()
+}
diff --git a/sdks/golang/client/models/create_response_type2_skip_state.go b/sdks/golang/client/models/create_response_type2_skip_state.go
new file mode 100644
index 00000000..58e9c276
--- /dev/null
+++ b/sdks/golang/client/models/create_response_type2_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type CreateResponseType2_skip_state int
+
+const (
+ ABHA_END_CREATERESPONSETYPE2_SKIP_STATE CreateResponseType2_skip_state = iota
+ CONFIRM_MOBILE_OTP_CREATERESPONSETYPE2_SKIP_STATE
+ ABHA_SELECT_CREATERESPONSETYPE2_SKIP_STATE
+ ABHA_CREATE_CREATERESPONSETYPE2_SKIP_STATE
+)
+
+func (i CreateResponseType2_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseCreateResponseType2_skip_state(v string) (any, error) {
+ result := ABHA_END_CREATERESPONSETYPE2_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_CREATERESPONSETYPE2_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_CREATERESPONSETYPE2_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_CREATERESPONSETYPE2_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_CREATERESPONSETYPE2_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown CreateResponseType2_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeCreateResponseType2_skip_state(values []CreateResponseType2_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i CreateResponseType2_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/deny_request.go b/sdks/golang/client/models/deny_request.go
new file mode 100644
index 00000000..6b466107
--- /dev/null
+++ b/sdks/golang/client/models/deny_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// DenyRequest
+type DenyRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Consent ID
+ id *string
+ // Users reason for denial in plain text
+ reason *string
+}
+// NewDenyRequest instantiates a new DenyRequest and sets the default values.
+func NewDenyRequest()(*DenyRequest) {
+ m := &DenyRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateDenyRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateDenyRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewDenyRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DenyRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *DenyRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetId(val)
+ }
+ return nil
+ }
+ res["reason"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetReason(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetId gets the id property value. Consent ID
+func (m *DenyRequest) GetId()(*string) {
+ return m.id
+}
+// GetReason gets the reason property value. Users reason for denial in plain text
+func (m *DenyRequest) GetReason()(*string) {
+ return m.reason
+}
+// Serialize serializes information the current object
+func (m *DenyRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("id", m.GetId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("reason", m.GetReason())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DenyRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetId sets the id property value. Consent ID
+func (m *DenyRequest) SetId(value *string)() {
+ m.id = value
+}
+// SetReason sets the reason property value. Users reason for denial in plain text
+func (m *DenyRequest) SetReason(value *string)() {
+ m.reason = value
+}
+// DenyRequestable
+type DenyRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetId()(*string)
+ GetReason()(*string)
+ SetId(value *string)()
+ SetReason(value *string)()
+}
diff --git a/sdks/golang/client/models/details_request_type2.go b/sdks/golang/client/models/details_request_type2.go
new file mode 100644
index 00000000..84965711
--- /dev/null
+++ b/sdks/golang/client/models/details_request_type2.go
@@ -0,0 +1,79 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// DetailsRequestType2
+type DetailsRequestType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The gender property
+ gender *DetailsRequestType2_gender
+}
+// NewDetailsRequestType2 instantiates a new DetailsRequestType2 and sets the default values.
+func NewDetailsRequestType2()(*DetailsRequestType2) {
+ m := &DetailsRequestType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateDetailsRequestType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateDetailsRequestType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewDetailsRequestType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DetailsRequestType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *DetailsRequestType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["gender"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseDetailsRequestType2_gender)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetGender(val.(*DetailsRequestType2_gender))
+ }
+ return nil
+ }
+ return res
+}
+// GetGender gets the gender property value. The gender property
+func (m *DetailsRequestType2) GetGender()(*DetailsRequestType2_gender) {
+ return m.gender
+}
+// Serialize serializes information the current object
+func (m *DetailsRequestType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ if m.GetGender() != nil {
+ cast := (*m.GetGender()).String()
+ err := writer.WriteStringValue("gender", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DetailsRequestType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetGender sets the gender property value. The gender property
+func (m *DetailsRequestType2) SetGender(value *DetailsRequestType2_gender)() {
+ m.gender = value
+}
+// DetailsRequestType2able
+type DetailsRequestType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetGender()(*DetailsRequestType2_gender)
+ SetGender(value *DetailsRequestType2_gender)()
+}
diff --git a/sdks/golang/client/models/details_request_type2_gender.go b/sdks/golang/client/models/details_request_type2_gender.go
new file mode 100644
index 00000000..fa7095f3
--- /dev/null
+++ b/sdks/golang/client/models/details_request_type2_gender.go
@@ -0,0 +1,40 @@
+package models
+import (
+ "errors"
+)
+//
+type DetailsRequestType2_gender int
+
+const (
+ M_DETAILSREQUESTTYPE2_GENDER DetailsRequestType2_gender = iota
+ F_DETAILSREQUESTTYPE2_GENDER
+ O_DETAILSREQUESTTYPE2_GENDER
+)
+
+func (i DetailsRequestType2_gender) String() string {
+ return []string{"M", "F", "O"}[i]
+}
+func ParseDetailsRequestType2_gender(v string) (any, error) {
+ result := M_DETAILSREQUESTTYPE2_GENDER
+ switch v {
+ case "M":
+ result = M_DETAILSREQUESTTYPE2_GENDER
+ case "F":
+ result = F_DETAILSREQUESTTYPE2_GENDER
+ case "O":
+ result = O_DETAILSREQUESTTYPE2_GENDER
+ default:
+ return 0, errors.New("Unknown DetailsRequestType2_gender value: " + v)
+ }
+ return &result, nil
+}
+func SerializeDetailsRequestType2_gender(values []DetailsRequestType2_gender) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i DetailsRequestType2_gender) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/details_response.go b/sdks/golang/client/models/details_response.go
new file mode 100644
index 00000000..fa9c5f19
--- /dev/null
+++ b/sdks/golang/client/models/details_response.go
@@ -0,0 +1,333 @@
+package models
+
+import (
+ i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// DetailsResponse
+type DetailsResponse struct {
+ // The access_mode property
+ access_mode *DetailsResponse_access_mode
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The created_at property
+ created_at *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+ // The duration property
+ duration CommonsDurationable
+ // The erase_at property
+ erase_at *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+ // The hiu property
+ hiu CommonsHiuable
+ // The id property
+ id *string
+ // The purpose property
+ purpose CommonsPurposeable
+ // The requester property
+ requester CommonsRequesterable
+ // The status property
+ status *DetailsResponse_status
+ // The updated_at property
+ updated_at *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+}
+// NewDetailsResponse instantiates a new DetailsResponse and sets the default values.
+func NewDetailsResponse()(*DetailsResponse) {
+ m := &DetailsResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateDetailsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateDetailsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewDetailsResponse(), nil
+}
+// GetAccessMode gets the access_mode property value. The access_mode property
+func (m *DetailsResponse) GetAccessMode()(*DetailsResponse_access_mode) {
+ return m.access_mode
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DetailsResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCreatedAt gets the created_at property value. The created_at property
+func (m *DetailsResponse) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.created_at
+}
+// GetDuration gets the duration property value. The duration property
+func (m *DetailsResponse) GetDuration()(CommonsDurationable) {
+ return m.duration
+}
+// GetEraseAt gets the erase_at property value. The erase_at property
+func (m *DetailsResponse) GetEraseAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.erase_at
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *DetailsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["access_mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseDetailsResponse_access_mode)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAccessMode(val.(*DetailsResponse_access_mode))
+ }
+ return nil
+ }
+ res["created_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCreatedAt(val)
+ }
+ return nil
+ }
+ res["duration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsDurationFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetDuration(val.(CommonsDurationable))
+ }
+ return nil
+ }
+ res["erase_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEraseAt(val)
+ }
+ return nil
+ }
+ res["hiu"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsHiuFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHiu(val.(CommonsHiuable))
+ }
+ return nil
+ }
+ res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetId(val)
+ }
+ return nil
+ }
+ res["purpose"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsPurposeFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPurpose(val.(CommonsPurposeable))
+ }
+ return nil
+ }
+ res["requester"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsRequesterFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetRequester(val.(CommonsRequesterable))
+ }
+ return nil
+ }
+ res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseDetailsResponse_status)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetStatus(val.(*DetailsResponse_status))
+ }
+ return nil
+ }
+ res["updated_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetUpdatedAt(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetHiu gets the hiu property value. The hiu property
+func (m *DetailsResponse) GetHiu()(CommonsHiuable) {
+ return m.hiu
+}
+// GetId gets the id property value. The id property
+func (m *DetailsResponse) GetId()(*string) {
+ return m.id
+}
+// GetPurpose gets the purpose property value. The purpose property
+func (m *DetailsResponse) GetPurpose()(CommonsPurposeable) {
+ return m.purpose
+}
+// GetRequester gets the requester property value. The requester property
+func (m *DetailsResponse) GetRequester()(CommonsRequesterable) {
+ return m.requester
+}
+// GetStatus gets the status property value. The status property
+func (m *DetailsResponse) GetStatus()(*DetailsResponse_status) {
+ return m.status
+}
+// GetUpdatedAt gets the updated_at property value. The updated_at property
+func (m *DetailsResponse) GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.updated_at
+}
+// Serialize serializes information the current object
+func (m *DetailsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ if m.GetAccessMode() != nil {
+ cast := (*m.GetAccessMode()).String()
+ err := writer.WriteStringValue("access_mode", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("created_at", m.GetCreatedAt())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("duration", m.GetDuration())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("erase_at", m.GetEraseAt())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("hiu", m.GetHiu())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("id", m.GetId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("purpose", m.GetPurpose())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("requester", m.GetRequester())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetStatus() != nil {
+ cast := (*m.GetStatus()).String()
+ err := writer.WriteStringValue("status", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("updated_at", m.GetUpdatedAt())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAccessMode sets the access_mode property value. The access_mode property
+func (m *DetailsResponse) SetAccessMode(value *DetailsResponse_access_mode)() {
+ m.access_mode = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DetailsResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCreatedAt sets the created_at property value. The created_at property
+func (m *DetailsResponse) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.created_at = value
+}
+// SetDuration sets the duration property value. The duration property
+func (m *DetailsResponse) SetDuration(value CommonsDurationable)() {
+ m.duration = value
+}
+// SetEraseAt sets the erase_at property value. The erase_at property
+func (m *DetailsResponse) SetEraseAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.erase_at = value
+}
+// SetHiu sets the hiu property value. The hiu property
+func (m *DetailsResponse) SetHiu(value CommonsHiuable)() {
+ m.hiu = value
+}
+// SetId sets the id property value. The id property
+func (m *DetailsResponse) SetId(value *string)() {
+ m.id = value
+}
+// SetPurpose sets the purpose property value. The purpose property
+func (m *DetailsResponse) SetPurpose(value CommonsPurposeable)() {
+ m.purpose = value
+}
+// SetRequester sets the requester property value. The requester property
+func (m *DetailsResponse) SetRequester(value CommonsRequesterable)() {
+ m.requester = value
+}
+// SetStatus sets the status property value. The status property
+func (m *DetailsResponse) SetStatus(value *DetailsResponse_status)() {
+ m.status = value
+}
+// SetUpdatedAt sets the updated_at property value. The updated_at property
+func (m *DetailsResponse) SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.updated_at = value
+}
+// DetailsResponseable
+type DetailsResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAccessMode()(*DetailsResponse_access_mode)
+ GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ GetDuration()(CommonsDurationable)
+ GetEraseAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ GetHiu()(CommonsHiuable)
+ GetId()(*string)
+ GetPurpose()(CommonsPurposeable)
+ GetRequester()(CommonsRequesterable)
+ GetStatus()(*DetailsResponse_status)
+ GetUpdatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ SetAccessMode(value *DetailsResponse_access_mode)()
+ SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+ SetDuration(value CommonsDurationable)()
+ SetEraseAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+ SetHiu(value CommonsHiuable)()
+ SetId(value *string)()
+ SetPurpose(value CommonsPurposeable)()
+ SetRequester(value CommonsRequesterable)()
+ SetStatus(value *DetailsResponse_status)()
+ SetUpdatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+}
diff --git a/sdks/golang/client/models/details_response_access_mode.go b/sdks/golang/client/models/details_response_access_mode.go
new file mode 100644
index 00000000..1df4d93c
--- /dev/null
+++ b/sdks/golang/client/models/details_response_access_mode.go
@@ -0,0 +1,34 @@
+package models
+import (
+ "errors"
+)
+//
+type DetailsResponse_access_mode int
+
+const (
+ VIEW_DETAILSRESPONSE_ACCESS_MODE DetailsResponse_access_mode = iota
+)
+
+func (i DetailsResponse_access_mode) String() string {
+ return []string{"view"}[i]
+}
+func ParseDetailsResponse_access_mode(v string) (any, error) {
+ result := VIEW_DETAILSRESPONSE_ACCESS_MODE
+ switch v {
+ case "view":
+ result = VIEW_DETAILSRESPONSE_ACCESS_MODE
+ default:
+ return 0, errors.New("Unknown DetailsResponse_access_mode value: " + v)
+ }
+ return &result, nil
+}
+func SerializeDetailsResponse_access_mode(values []DetailsResponse_access_mode) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i DetailsResponse_access_mode) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/details_response_status.go b/sdks/golang/client/models/details_response_status.go
new file mode 100644
index 00000000..81551090
--- /dev/null
+++ b/sdks/golang/client/models/details_response_status.go
@@ -0,0 +1,46 @@
+package models
+import (
+ "errors"
+)
+//
+type DetailsResponse_status int
+
+const (
+ REQUESTED_DETAILSRESPONSE_STATUS DetailsResponse_status = iota
+ GRANTED_DETAILSRESPONSE_STATUS
+ EXPIRED_DETAILSRESPONSE_STATUS
+ DENIED_DETAILSRESPONSE_STATUS
+ REVOKED_DETAILSRESPONSE_STATUS
+)
+
+func (i DetailsResponse_status) String() string {
+ return []string{"requested", "granted", "expired", "denied", "revoked"}[i]
+}
+func ParseDetailsResponse_status(v string) (any, error) {
+ result := REQUESTED_DETAILSRESPONSE_STATUS
+ switch v {
+ case "requested":
+ result = REQUESTED_DETAILSRESPONSE_STATUS
+ case "granted":
+ result = GRANTED_DETAILSRESPONSE_STATUS
+ case "expired":
+ result = EXPIRED_DETAILSRESPONSE_STATUS
+ case "denied":
+ result = DENIED_DETAILSRESPONSE_STATUS
+ case "revoked":
+ result = REVOKED_DETAILSRESPONSE_STATUS
+ default:
+ return 0, errors.New("Unknown DetailsResponse_status value: " + v)
+ }
+ return &result, nil
+}
+func SerializeDetailsResponse_status(values []DetailsResponse_status) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i DetailsResponse_status) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/discover_request.go b/sdks/golang/client/models/discover_request.go
new file mode 100644
index 00000000..06a523e6
--- /dev/null
+++ b/sdks/golang/client/models/discover_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// DiscoverRequest
+type DiscoverRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The hip_id property
+ hip_id *string
+ // The unique identifier for the patient within the Healthcare Information Provider (HIP), such as the patient's registration ID, email address, or phone number used at the hospital or lab.
+ ref_id *string
+}
+// NewDiscoverRequest instantiates a new DiscoverRequest and sets the default values.
+func NewDiscoverRequest()(*DiscoverRequest) {
+ m := &DiscoverRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateDiscoverRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateDiscoverRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewDiscoverRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DiscoverRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *DiscoverRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["hip_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHipId(val)
+ }
+ return nil
+ }
+ res["ref_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetRefId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetHipId gets the hip_id property value. The hip_id property
+func (m *DiscoverRequest) GetHipId()(*string) {
+ return m.hip_id
+}
+// GetRefId gets the ref_id property value. The unique identifier for the patient within the Healthcare Information Provider (HIP), such as the patient's registration ID, email address, or phone number used at the hospital or lab.
+func (m *DiscoverRequest) GetRefId()(*string) {
+ return m.ref_id
+}
+// Serialize serializes information the current object
+func (m *DiscoverRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("hip_id", m.GetHipId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("ref_id", m.GetRefId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DiscoverRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetHipId sets the hip_id property value. The hip_id property
+func (m *DiscoverRequest) SetHipId(value *string)() {
+ m.hip_id = value
+}
+// SetRefId sets the ref_id property value. The unique identifier for the patient within the Healthcare Information Provider (HIP), such as the patient's registration ID, email address, or phone number used at the hospital or lab.
+func (m *DiscoverRequest) SetRefId(value *string)() {
+ m.ref_id = value
+}
+// DiscoverRequestable
+type DiscoverRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetHipId()(*string)
+ GetRefId()(*string)
+ SetHipId(value *string)()
+ SetRefId(value *string)()
+}
diff --git a/sdks/golang/client/models/discover_response.go b/sdks/golang/client/models/discover_response.go
new file mode 100644
index 00000000..a2d07500
--- /dev/null
+++ b/sdks/golang/client/models/discover_response.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// DiscoverResponse
+type DiscoverResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The txn_id property
+ txn_id *string
+}
+// NewDiscoverResponse instantiates a new DiscoverResponse and sets the default values.
+func NewDiscoverResponse()(*DiscoverResponse) {
+ m := &DiscoverResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateDiscoverResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateDiscoverResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewDiscoverResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DiscoverResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *DiscoverResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *DiscoverResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *DiscoverResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *DiscoverResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *DiscoverResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// DiscoverResponseable
+type DiscoverResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/exist_request.go b/sdks/golang/client/models/exist_request.go
new file mode 100644
index 00000000..717a994d
--- /dev/null
+++ b/sdks/golang/client/models/exist_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ExistRequest
+type ExistRequest struct {
+ // The abha_address property
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewExistRequest instantiates a new ExistRequest and sets the default values.
+func NewExistRequest()(*ExistRequest) {
+ m := &ExistRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateExistRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateExistRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewExistRequest(), nil
+}
+// GetAbhaAddress gets the abha_address property value. The abha_address property
+func (m *ExistRequest) GetAbhaAddress()(*string) {
+ return m.abha_address
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ExistRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["abha_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *ExistRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAbhaAddress sets the abha_address property value. The abha_address property
+func (m *ExistRequest) SetAbhaAddress(value *string)() {
+ m.abha_address = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// ExistRequestable
+type ExistRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress()(*string)
+ SetAbhaAddress(value *string)()
+}
diff --git a/sdks/golang/client/models/exist_response.go b/sdks/golang/client/models/exist_response.go
new file mode 100644
index 00000000..1379779d
--- /dev/null
+++ b/sdks/golang/client/models/exist_response.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ExistResponse
+type ExistResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // True if the ABHA Address already exists
+ exist *bool
+}
+// NewExistResponse instantiates a new ExistResponse and sets the default values.
+func NewExistResponse()(*ExistResponse) {
+ m := &ExistResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateExistResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateExistResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewExistResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetExist gets the exist property value. True if the ABHA Address already exists
+func (m *ExistResponse) GetExist()(*bool) {
+ return m.exist
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ExistResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["exist"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetBoolValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetExist(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *ExistResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteBoolValue("exist", m.GetExist())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetExist sets the exist property value. True if the ABHA Address already exists
+func (m *ExistResponse) SetExist(value *bool)() {
+ m.exist = value
+}
+// ExistResponseable
+type ExistResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetExist()(*bool)
+ SetExist(value *bool)()
+}
diff --git a/sdks/golang/client/models/exist_response_type2.go b/sdks/golang/client/models/exist_response_type2.go
new file mode 100644
index 00000000..fd9dcb1c
--- /dev/null
+++ b/sdks/golang/client/models/exist_response_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ExistResponseType2
+type ExistResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The exist property
+ exist *bool
+}
+// NewExistResponseType2 instantiates a new ExistResponseType2 and sets the default values.
+func NewExistResponseType2()(*ExistResponseType2) {
+ m := &ExistResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateExistResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateExistResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewExistResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetExist gets the exist property value. The exist property
+func (m *ExistResponseType2) GetExist()(*bool) {
+ return m.exist
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ExistResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["exist"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetBoolValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetExist(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *ExistResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteBoolValue("exist", m.GetExist())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ExistResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetExist sets the exist property value. The exist property
+func (m *ExistResponseType2) SetExist(value *bool)() {
+ m.exist = value
+}
+// ExistResponseType2able
+type ExistResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetExist()(*bool)
+ SetExist(value *bool)()
+}
diff --git a/sdks/golang/client/models/generic_error.go b/sdks/golang/client/models/generic_error.go
new file mode 100644
index 00000000..33277d77
--- /dev/null
+++ b/sdks/golang/client/models/generic_error.go
@@ -0,0 +1,113 @@
+package models
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// GenericError
+type GenericError struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The code property
+ code *int32
+ // The error property
+ errorEscaped *string
+}
+// NewGenericError instantiates a new GenericError and sets the default values.
+func NewGenericError()(*GenericError) {
+ m := &GenericError{
+ ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(),
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateGenericErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateGenericErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewGenericError(), nil
+}
+// Error the primary error message.
+func (m *GenericError) Error()(string) {
+ return m.ApiError.Error()
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GenericError) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCode gets the code property value. The code property
+func (m *GenericError) GetCode()(*int32) {
+ return m.code
+}
+// GetErrorEscaped gets the error property value. The error property
+func (m *GenericError) GetErrorEscaped()(*string) {
+ return m.errorEscaped
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *GenericError) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetInt32Value()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCode(val)
+ }
+ return nil
+ }
+ res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetErrorEscaped(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *GenericError) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteInt32Value("code", m.GetCode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("error", m.GetErrorEscaped())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GenericError) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCode sets the code property value. The code property
+func (m *GenericError) SetCode(value *int32)() {
+ m.code = value
+}
+// SetErrorEscaped sets the error property value. The error property
+func (m *GenericError) SetErrorEscaped(value *string)() {
+ m.errorEscaped = value
+}
+// GenericErrorable
+type GenericErrorable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCode()(*int32)
+ GetErrorEscaped()(*string)
+ SetCode(value *int32)()
+ SetErrorEscaped(value *string)()
+}
diff --git a/sdks/golang/client/models/gerror_action.go b/sdks/golang/client/models/gerror_action.go
new file mode 100644
index 00000000..44461363
--- /dev/null
+++ b/sdks/golang/client/models/gerror_action.go
@@ -0,0 +1,190 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// GerrorAction
+type GerrorAction struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The cta property
+ cta GerrorActionCtaable
+ // The description property
+ description *string
+ // The img property
+ img *string
+ // The suggest_method property
+ suggest_method *string
+ // The title property
+ title *string
+}
+// NewGerrorAction instantiates a new GerrorAction and sets the default values.
+func NewGerrorAction()(*GerrorAction) {
+ m := &GerrorAction{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateGerrorActionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateGerrorActionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewGerrorAction(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorAction) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCta gets the cta property value. The cta property
+func (m *GerrorAction) GetCta()(GerrorActionCtaable) {
+ return m.cta
+}
+// GetDescription gets the description property value. The description property
+func (m *GerrorAction) GetDescription()(*string) {
+ return m.description
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *GerrorAction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["cta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateGerrorActionCtaFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCta(val.(GerrorActionCtaable))
+ }
+ return nil
+ }
+ res["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetDescription(val)
+ }
+ return nil
+ }
+ res["img"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetImg(val)
+ }
+ return nil
+ }
+ res["suggest_method"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSuggestMethod(val)
+ }
+ return nil
+ }
+ res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTitle(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetImg gets the img property value. The img property
+func (m *GerrorAction) GetImg()(*string) {
+ return m.img
+}
+// GetSuggestMethod gets the suggest_method property value. The suggest_method property
+func (m *GerrorAction) GetSuggestMethod()(*string) {
+ return m.suggest_method
+}
+// GetTitle gets the title property value. The title property
+func (m *GerrorAction) GetTitle()(*string) {
+ return m.title
+}
+// Serialize serializes information the current object
+func (m *GerrorAction) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("cta", m.GetCta())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("description", m.GetDescription())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("img", m.GetImg())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("suggest_method", m.GetSuggestMethod())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("title", m.GetTitle())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorAction) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCta sets the cta property value. The cta property
+func (m *GerrorAction) SetCta(value GerrorActionCtaable)() {
+ m.cta = value
+}
+// SetDescription sets the description property value. The description property
+func (m *GerrorAction) SetDescription(value *string)() {
+ m.description = value
+}
+// SetImg sets the img property value. The img property
+func (m *GerrorAction) SetImg(value *string)() {
+ m.img = value
+}
+// SetSuggestMethod sets the suggest_method property value. The suggest_method property
+func (m *GerrorAction) SetSuggestMethod(value *string)() {
+ m.suggest_method = value
+}
+// SetTitle sets the title property value. The title property
+func (m *GerrorAction) SetTitle(value *string)() {
+ m.title = value
+}
+// GerrorActionable
+type GerrorActionable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCta()(GerrorActionCtaable)
+ GetDescription()(*string)
+ GetImg()(*string)
+ GetSuggestMethod()(*string)
+ GetTitle()(*string)
+ SetCta(value GerrorActionCtaable)()
+ SetDescription(value *string)()
+ SetImg(value *string)()
+ SetSuggestMethod(value *string)()
+ SetTitle(value *string)()
+}
diff --git a/sdks/golang/client/models/gerror_action_cta.go b/sdks/golang/client/models/gerror_action_cta.go
new file mode 100644
index 00000000..ee76501e
--- /dev/null
+++ b/sdks/golang/client/models/gerror_action_cta.go
@@ -0,0 +1,134 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// GerrorActionCta
+type GerrorActionCta struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The params property
+ params GerrorActionCta_paramsable
+ // The pid property
+ pid *string
+ // The title property
+ title *string
+}
+// NewGerrorActionCta instantiates a new GerrorActionCta and sets the default values.
+func NewGerrorActionCta()(*GerrorActionCta) {
+ m := &GerrorActionCta{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateGerrorActionCtaFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateGerrorActionCtaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewGerrorActionCta(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorActionCta) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *GerrorActionCta) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["params"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateGerrorActionCta_paramsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetParams(val.(GerrorActionCta_paramsable))
+ }
+ return nil
+ }
+ res["pid"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPid(val)
+ }
+ return nil
+ }
+ res["title"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTitle(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetParams gets the params property value. The params property
+func (m *GerrorActionCta) GetParams()(GerrorActionCta_paramsable) {
+ return m.params
+}
+// GetPid gets the pid property value. The pid property
+func (m *GerrorActionCta) GetPid()(*string) {
+ return m.pid
+}
+// GetTitle gets the title property value. The title property
+func (m *GerrorActionCta) GetTitle()(*string) {
+ return m.title
+}
+// Serialize serializes information the current object
+func (m *GerrorActionCta) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("params", m.GetParams())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("pid", m.GetPid())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("title", m.GetTitle())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorActionCta) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetParams sets the params property value. The params property
+func (m *GerrorActionCta) SetParams(value GerrorActionCta_paramsable)() {
+ m.params = value
+}
+// SetPid sets the pid property value. The pid property
+func (m *GerrorActionCta) SetPid(value *string)() {
+ m.pid = value
+}
+// SetTitle sets the title property value. The title property
+func (m *GerrorActionCta) SetTitle(value *string)() {
+ m.title = value
+}
+// GerrorActionCtaable
+type GerrorActionCtaable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetParams()(GerrorActionCta_paramsable)
+ GetPid()(*string)
+ GetTitle()(*string)
+ SetParams(value GerrorActionCta_paramsable)()
+ SetPid(value *string)()
+ SetTitle(value *string)()
+}
diff --git a/sdks/golang/client/models/gerror_action_cta_params.go b/sdks/golang/client/models/gerror_action_cta_params.go
new file mode 100644
index 00000000..5bc41e3c
--- /dev/null
+++ b/sdks/golang/client/models/gerror_action_cta_params.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// GerrorActionCta_params
+type GerrorActionCta_params struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewGerrorActionCta_params instantiates a new GerrorActionCta_params and sets the default values.
+func NewGerrorActionCta_params()(*GerrorActionCta_params) {
+ m := &GerrorActionCta_params{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateGerrorActionCta_paramsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateGerrorActionCta_paramsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewGerrorActionCta_params(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorActionCta_params) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *GerrorActionCta_params) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *GerrorActionCta_params) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorActionCta_params) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// GerrorActionCta_paramsable
+type GerrorActionCta_paramsable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/gerror_error_resp.go b/sdks/golang/client/models/gerror_error_resp.go
new file mode 100644
index 00000000..2e827b45
--- /dev/null
+++ b/sdks/golang/client/models/gerror_error_resp.go
@@ -0,0 +1,141 @@
+package models
+
+import (
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// GerrorErrorResp
+type GerrorErrorResp struct {
+ i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
+ // The action property
+ action GerrorActionable
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The code property
+ code *int32
+ // The error property
+ errorEscaped *string
+}
+// NewGerrorErrorResp instantiates a new GerrorErrorResp and sets the default values.
+func NewGerrorErrorResp()(*GerrorErrorResp) {
+ m := &GerrorErrorResp{
+ ApiError: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewApiError(),
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateGerrorErrorRespFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateGerrorErrorRespFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewGerrorErrorResp(), nil
+}
+// Error the primary error message.
+func (m *GerrorErrorResp) Error()(string) {
+ return m.ApiError.Error()
+}
+// GetAction gets the action property value. The action property
+func (m *GerrorErrorResp) GetAction()(GerrorActionable) {
+ return m.action
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorErrorResp) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCode gets the code property value. The code property
+func (m *GerrorErrorResp) GetCode()(*int32) {
+ return m.code
+}
+// GetErrorEscaped gets the error property value. The error property
+func (m *GerrorErrorResp) GetErrorEscaped()(*string) {
+ return m.errorEscaped
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *GerrorErrorResp) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["action"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateGerrorActionFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAction(val.(GerrorActionable))
+ }
+ return nil
+ }
+ res["code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetInt32Value()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCode(val)
+ }
+ return nil
+ }
+ res["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetErrorEscaped(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *GerrorErrorResp) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("action", m.GetAction())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteInt32Value("code", m.GetCode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("error", m.GetErrorEscaped())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAction sets the action property value. The action property
+func (m *GerrorErrorResp) SetAction(value GerrorActionable)() {
+ m.action = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *GerrorErrorResp) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCode sets the code property value. The code property
+func (m *GerrorErrorResp) SetCode(value *int32)() {
+ m.code = value
+}
+// SetErrorEscaped sets the error property value. The error property
+func (m *GerrorErrorResp) SetErrorEscaped(value *string)() {
+ m.errorEscaped = value
+}
+// GerrorErrorRespable
+type GerrorErrorRespable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAction()(GerrorActionable)
+ GetCode()(*int32)
+ GetErrorEscaped()(*string)
+ SetAction(value GerrorActionable)()
+ SetCode(value *int32)()
+ SetErrorEscaped(value *string)()
+}
diff --git a/sdks/golang/client/models/hip_location.go b/sdks/golang/client/models/hip_location.go
new file mode 100644
index 00000000..5b313c3d
--- /dev/null
+++ b/sdks/golang/client/models/hip_location.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// HipLocation
+type HipLocation struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The latitude property
+ latitude *string
+ // The longitude property
+ longitude *string
+}
+// NewHipLocation instantiates a new HipLocation and sets the default values.
+func NewHipLocation()(*HipLocation) {
+ m := &HipLocation{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateHipLocationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateHipLocationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewHipLocation(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *HipLocation) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *HipLocation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["latitude"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetLatitude(val)
+ }
+ return nil
+ }
+ res["longitude"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetLongitude(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetLatitude gets the latitude property value. The latitude property
+func (m *HipLocation) GetLatitude()(*string) {
+ return m.latitude
+}
+// GetLongitude gets the longitude property value. The longitude property
+func (m *HipLocation) GetLongitude()(*string) {
+ return m.longitude
+}
+// Serialize serializes information the current object
+func (m *HipLocation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("latitude", m.GetLatitude())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("longitude", m.GetLongitude())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *HipLocation) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetLatitude sets the latitude property value. The latitude property
+func (m *HipLocation) SetLatitude(value *string)() {
+ m.latitude = value
+}
+// SetLongitude sets the longitude property value. The longitude property
+func (m *HipLocation) SetLongitude(value *string)() {
+ m.longitude = value
+}
+// HipLocationable
+type HipLocationable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetLatitude()(*string)
+ GetLongitude()(*string)
+ SetLatitude(value *string)()
+ SetLongitude(value *string)()
+}
diff --git a/sdks/golang/client/models/hip_q_r_scan_share_profile_response_v2.go b/sdks/golang/client/models/hip_q_r_scan_share_profile_response_v2.go
new file mode 100644
index 00000000..c5e648f2
--- /dev/null
+++ b/sdks/golang/client/models/hip_q_r_scan_share_profile_response_v2.go
@@ -0,0 +1,303 @@
+package models
+
+import (
+ i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time"
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// HipQRScanShareProfileResponseV2
+type HipQRScanShareProfileResponseV2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The address property
+ address *string
+ // The created_at property
+ created_at *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+ // The footer property
+ footer *string
+ // The hip_id property
+ hip_id *string
+ // The hip_name property
+ hip_name *string
+ // The request_id property
+ request_id *string
+ // The show_token_screen property
+ show_token_screen *bool
+ // The token_expiry property
+ token_expiry *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
+ // The token_number property
+ token_number *string
+}
+// NewHipQRScanShareProfileResponseV2 instantiates a new HipQRScanShareProfileResponseV2 and sets the default values.
+func NewHipQRScanShareProfileResponseV2()(*HipQRScanShareProfileResponseV2) {
+ m := &HipQRScanShareProfileResponseV2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateHipQRScanShareProfileResponseV2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateHipQRScanShareProfileResponseV2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewHipQRScanShareProfileResponseV2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *HipQRScanShareProfileResponseV2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetAddress gets the address property value. The address property
+func (m *HipQRScanShareProfileResponseV2) GetAddress()(*string) {
+ return m.address
+}
+// GetCreatedAt gets the created_at property value. The created_at property
+func (m *HipQRScanShareProfileResponseV2) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.created_at
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *HipQRScanShareProfileResponseV2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAddress(val)
+ }
+ return nil
+ }
+ res["created_at"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCreatedAt(val)
+ }
+ return nil
+ }
+ res["footer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetFooter(val)
+ }
+ return nil
+ }
+ res["hip_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHipId(val)
+ }
+ return nil
+ }
+ res["hip_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHipName(val)
+ }
+ return nil
+ }
+ res["request_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetRequestId(val)
+ }
+ return nil
+ }
+ res["show_token_screen"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetBoolValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetShowTokenScreen(val)
+ }
+ return nil
+ }
+ res["token_expiry"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetTimeValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTokenExpiry(val)
+ }
+ return nil
+ }
+ res["token_number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTokenNumber(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetFooter gets the footer property value. The footer property
+func (m *HipQRScanShareProfileResponseV2) GetFooter()(*string) {
+ return m.footer
+}
+// GetHipId gets the hip_id property value. The hip_id property
+func (m *HipQRScanShareProfileResponseV2) GetHipId()(*string) {
+ return m.hip_id
+}
+// GetHipName gets the hip_name property value. The hip_name property
+func (m *HipQRScanShareProfileResponseV2) GetHipName()(*string) {
+ return m.hip_name
+}
+// GetRequestId gets the request_id property value. The request_id property
+func (m *HipQRScanShareProfileResponseV2) GetRequestId()(*string) {
+ return m.request_id
+}
+// GetShowTokenScreen gets the show_token_screen property value. The show_token_screen property
+func (m *HipQRScanShareProfileResponseV2) GetShowTokenScreen()(*bool) {
+ return m.show_token_screen
+}
+// GetTokenExpiry gets the token_expiry property value. The token_expiry property
+func (m *HipQRScanShareProfileResponseV2) GetTokenExpiry()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) {
+ return m.token_expiry
+}
+// GetTokenNumber gets the token_number property value. The token_number property
+func (m *HipQRScanShareProfileResponseV2) GetTokenNumber()(*string) {
+ return m.token_number
+}
+// Serialize serializes information the current object
+func (m *HipQRScanShareProfileResponseV2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("address", m.GetAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("created_at", m.GetCreatedAt())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("footer", m.GetFooter())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("hip_id", m.GetHipId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("hip_name", m.GetHipName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("request_id", m.GetRequestId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteBoolValue("show_token_screen", m.GetShowTokenScreen())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteTimeValue("token_expiry", m.GetTokenExpiry())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("token_number", m.GetTokenNumber())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *HipQRScanShareProfileResponseV2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetAddress sets the address property value. The address property
+func (m *HipQRScanShareProfileResponseV2) SetAddress(value *string)() {
+ m.address = value
+}
+// SetCreatedAt sets the created_at property value. The created_at property
+func (m *HipQRScanShareProfileResponseV2) SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.created_at = value
+}
+// SetFooter sets the footer property value. The footer property
+func (m *HipQRScanShareProfileResponseV2) SetFooter(value *string)() {
+ m.footer = value
+}
+// SetHipId sets the hip_id property value. The hip_id property
+func (m *HipQRScanShareProfileResponseV2) SetHipId(value *string)() {
+ m.hip_id = value
+}
+// SetHipName sets the hip_name property value. The hip_name property
+func (m *HipQRScanShareProfileResponseV2) SetHipName(value *string)() {
+ m.hip_name = value
+}
+// SetRequestId sets the request_id property value. The request_id property
+func (m *HipQRScanShareProfileResponseV2) SetRequestId(value *string)() {
+ m.request_id = value
+}
+// SetShowTokenScreen sets the show_token_screen property value. The show_token_screen property
+func (m *HipQRScanShareProfileResponseV2) SetShowTokenScreen(value *bool)() {
+ m.show_token_screen = value
+}
+// SetTokenExpiry sets the token_expiry property value. The token_expiry property
+func (m *HipQRScanShareProfileResponseV2) SetTokenExpiry(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() {
+ m.token_expiry = value
+}
+// SetTokenNumber sets the token_number property value. The token_number property
+func (m *HipQRScanShareProfileResponseV2) SetTokenNumber(value *string)() {
+ m.token_number = value
+}
+// HipQRScanShareProfileResponseV2able
+type HipQRScanShareProfileResponseV2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAddress()(*string)
+ GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ GetFooter()(*string)
+ GetHipId()(*string)
+ GetHipName()(*string)
+ GetRequestId()(*string)
+ GetShowTokenScreen()(*bool)
+ GetTokenExpiry()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
+ GetTokenNumber()(*string)
+ SetAddress(value *string)()
+ SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+ SetFooter(value *string)()
+ SetHipId(value *string)()
+ SetHipName(value *string)()
+ SetRequestId(value *string)()
+ SetShowTokenScreen(value *bool)()
+ SetTokenExpiry(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
+ SetTokenNumber(value *string)()
+}
diff --git a/sdks/golang/client/models/init_request.go b/sdks/golang/client/models/init_request.go
new file mode 100644
index 00000000..1fdfaaba
--- /dev/null
+++ b/sdks/golang/client/models/init_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitRequest
+type InitRequest struct {
+ // The aadhaar_number property
+ aadhaar_number *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewInitRequest instantiates a new InitRequest and sets the default values.
+func NewInitRequest()(*InitRequest) {
+ m := &InitRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitRequest(), nil
+}
+// GetAadhaarNumber gets the aadhaar_number property value. The aadhaar_number property
+func (m *InitRequest) GetAadhaarNumber()(*string) {
+ return m.aadhaar_number
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["aadhaar_number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAadhaarNumber(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *InitRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("aadhaar_number", m.GetAadhaarNumber())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAadhaarNumber sets the aadhaar_number property value. The aadhaar_number property
+func (m *InitRequest) SetAadhaarNumber(value *string)() {
+ m.aadhaar_number = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// InitRequestable
+type InitRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAadhaarNumber()(*string)
+ SetAadhaarNumber(value *string)()
+}
diff --git a/sdks/golang/client/models/init_request_type2.go b/sdks/golang/client/models/init_request_type2.go
new file mode 100644
index 00000000..4453f815
--- /dev/null
+++ b/sdks/golang/client/models/init_request_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitRequestType2
+type InitRequestType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The mobile_number property
+ mobile_number *string
+}
+// NewInitRequestType2 instantiates a new InitRequestType2 and sets the default values.
+func NewInitRequestType2()(*InitRequestType2) {
+ m := &InitRequestType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitRequestType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitRequestType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitRequestType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitRequestType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["mobile_number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetMobileNumber(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetMobileNumber gets the mobile_number property value. The mobile_number property
+func (m *InitRequestType2) GetMobileNumber()(*string) {
+ return m.mobile_number
+}
+// Serialize serializes information the current object
+func (m *InitRequestType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("mobile_number", m.GetMobileNumber())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetMobileNumber sets the mobile_number property value. The mobile_number property
+func (m *InitRequestType2) SetMobileNumber(value *string)() {
+ m.mobile_number = value
+}
+// InitRequestType2able
+type InitRequestType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetMobileNumber()(*string)
+ SetMobileNumber(value *string)()
+}
diff --git a/sdks/golang/client/models/init_request_type3.go b/sdks/golang/client/models/init_request_type3.go
new file mode 100644
index 00000000..f73027af
--- /dev/null
+++ b/sdks/golang/client/models/init_request_type3.go
@@ -0,0 +1,134 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitRequestType3
+type InitRequestType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The cc_ref_id property
+ cc_ref_id *string
+ // The patient_ref_id property
+ patient_ref_id *string
+ // The txn_id property
+ txn_id *string
+}
+// NewInitRequestType3 instantiates a new InitRequestType3 and sets the default values.
+func NewInitRequestType3()(*InitRequestType3) {
+ m := &InitRequestType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitRequestType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitRequestType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitRequestType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCcRefId gets the cc_ref_id property value. The cc_ref_id property
+func (m *InitRequestType3) GetCcRefId()(*string) {
+ return m.cc_ref_id
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitRequestType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["cc_ref_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCcRefId(val)
+ }
+ return nil
+ }
+ res["patient_ref_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPatientRefId(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetPatientRefId gets the patient_ref_id property value. The patient_ref_id property
+func (m *InitRequestType3) GetPatientRefId()(*string) {
+ return m.patient_ref_id
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *InitRequestType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitRequestType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("cc_ref_id", m.GetCcRefId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("patient_ref_id", m.GetPatientRefId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCcRefId sets the cc_ref_id property value. The cc_ref_id property
+func (m *InitRequestType3) SetCcRefId(value *string)() {
+ m.cc_ref_id = value
+}
+// SetPatientRefId sets the patient_ref_id property value. The patient_ref_id property
+func (m *InitRequestType3) SetPatientRefId(value *string)() {
+ m.patient_ref_id = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *InitRequestType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitRequestType3able
+type InitRequestType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCcRefId()(*string)
+ GetPatientRefId()(*string)
+ GetTxnId()(*string)
+ SetCcRefId(value *string)()
+ SetPatientRefId(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/init_request_type4.go b/sdks/golang/client/models/init_request_type4.go
new file mode 100644
index 00000000..f7cb3ec2
--- /dev/null
+++ b/sdks/golang/client/models/init_request_type4.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitRequestType4
+type InitRequestType4 struct {
+ // The abha_address property
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewInitRequestType4 instantiates a new InitRequestType4 and sets the default values.
+func NewInitRequestType4()(*InitRequestType4) {
+ m := &InitRequestType4{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitRequestType4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitRequestType4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitRequestType4(), nil
+}
+// GetAbhaAddress gets the abha_address property value. The abha_address property
+func (m *InitRequestType4) GetAbhaAddress()(*string) {
+ return m.abha_address
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType4) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitRequestType4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["abha_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ return res
+}
+// Serialize serializes information the current object
+func (m *InitRequestType4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAbhaAddress sets the abha_address property value. The abha_address property
+func (m *InitRequestType4) SetAbhaAddress(value *string)() {
+ m.abha_address = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitRequestType4) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// InitRequestType4able
+type InitRequestType4able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress()(*string)
+ SetAbhaAddress(value *string)()
+}
diff --git a/sdks/golang/client/models/init_response.go b/sdks/golang/client/models/init_response.go
new file mode 100644
index 00000000..a48f3f3d
--- /dev/null
+++ b/sdks/golang/client/models/init_response.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitResponse
+type InitResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction id for the abha registration
+ txn_id *string
+}
+// NewInitResponse instantiates a new InitResponse and sets the default values.
+func NewInitResponse()(*InitResponse) {
+ m := &InitResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction id for the abha registration
+func (m *InitResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction id for the abha registration
+func (m *InitResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitResponseable
+type InitResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/init_response_type2.go b/sdks/golang/client/models/init_response_type2.go
new file mode 100644
index 00000000..3e86f1d2
--- /dev/null
+++ b/sdks/golang/client/models/init_response_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitResponseType2
+type InitResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction id received in the /init API
+ txn_id *string
+}
+// NewInitResponseType2 instantiates a new InitResponseType2 and sets the default values.
+func NewInitResponseType2()(*InitResponseType2) {
+ m := &InitResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction id received in the /init API
+func (m *InitResponseType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction id received in the /init API
+func (m *InitResponseType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitResponseType2able
+type InitResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/init_response_type3.go b/sdks/golang/client/models/init_response_type3.go
new file mode 100644
index 00000000..44ad61b6
--- /dev/null
+++ b/sdks/golang/client/models/init_response_type3.go
@@ -0,0 +1,162 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitResponseType3
+type InitResponseType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The expiry_in_minutes property
+ expiry_in_minutes *int32
+ // Medium which is used to generate otp
+ medium *string
+ // Value of medium
+ otp_medium_value *string
+ // The txn_id property
+ txn_id *string
+}
+// NewInitResponseType3 instantiates a new InitResponseType3 and sets the default values.
+func NewInitResponseType3()(*InitResponseType3) {
+ m := &InitResponseType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitResponseType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitResponseType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitResponseType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetExpiryInMinutes gets the expiry_in_minutes property value. The expiry_in_minutes property
+func (m *InitResponseType3) GetExpiryInMinutes()(*int32) {
+ return m.expiry_in_minutes
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitResponseType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["expiry_in_minutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetInt32Value()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetExpiryInMinutes(val)
+ }
+ return nil
+ }
+ res["medium"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetMedium(val)
+ }
+ return nil
+ }
+ res["otp_medium_value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOtpMediumValue(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetMedium gets the medium property value. Medium which is used to generate otp
+func (m *InitResponseType3) GetMedium()(*string) {
+ return m.medium
+}
+// GetOtpMediumValue gets the otp_medium_value property value. Value of medium
+func (m *InitResponseType3) GetOtpMediumValue()(*string) {
+ return m.otp_medium_value
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *InitResponseType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitResponseType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteInt32Value("expiry_in_minutes", m.GetExpiryInMinutes())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("medium", m.GetMedium())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("otp_medium_value", m.GetOtpMediumValue())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetExpiryInMinutes sets the expiry_in_minutes property value. The expiry_in_minutes property
+func (m *InitResponseType3) SetExpiryInMinutes(value *int32)() {
+ m.expiry_in_minutes = value
+}
+// SetMedium sets the medium property value. Medium which is used to generate otp
+func (m *InitResponseType3) SetMedium(value *string)() {
+ m.medium = value
+}
+// SetOtpMediumValue sets the otp_medium_value property value. Value of medium
+func (m *InitResponseType3) SetOtpMediumValue(value *string)() {
+ m.otp_medium_value = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *InitResponseType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitResponseType3able
+type InitResponseType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetExpiryInMinutes()(*int32)
+ GetMedium()(*string)
+ GetOtpMediumValue()(*string)
+ GetTxnId()(*string)
+ SetExpiryInMinutes(value *int32)()
+ SetMedium(value *string)()
+ SetOtpMediumValue(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/init_response_type4.go b/sdks/golang/client/models/init_response_type4.go
new file mode 100644
index 00000000..e65ba9a1
--- /dev/null
+++ b/sdks/golang/client/models/init_response_type4.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitResponseType4
+type InitResponseType4 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The txn_id property
+ txn_id *string
+}
+// NewInitResponseType4 instantiates a new InitResponseType4 and sets the default values.
+func NewInitResponseType4()(*InitResponseType4) {
+ m := &InitResponseType4{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitResponseType4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitResponseType4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitResponseType4(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType4) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitResponseType4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *InitResponseType4) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitResponseType4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType4) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *InitResponseType4) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitResponseType4able
+type InitResponseType4able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/init_response_type5.go b/sdks/golang/client/models/init_response_type5.go
new file mode 100644
index 00000000..284d23c2
--- /dev/null
+++ b/sdks/golang/client/models/init_response_type5.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// InitResponseType5
+type InitResponseType5 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID for the session
+ txn_id *string
+}
+// NewInitResponseType5 instantiates a new InitResponseType5 and sets the default values.
+func NewInitResponseType5()(*InitResponseType5) {
+ m := &InitResponseType5{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateInitResponseType5FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateInitResponseType5FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewInitResponseType5(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType5) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *InitResponseType5) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID for the session
+func (m *InitResponseType5) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *InitResponseType5) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *InitResponseType5) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID for the session
+func (m *InitResponseType5) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// InitResponseType5able
+type InitResponseType5able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/lists_response.go b/sdks/golang/client/models/lists_response.go
new file mode 100644
index 00000000..e993d365
--- /dev/null
+++ b/sdks/golang/client/models/lists_response.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ListsResponse
+type ListsResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewListsResponse instantiates a new ListsResponse and sets the default values.
+func NewListsResponse()(*ListsResponse) {
+ m := &ListsResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateListsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateListsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewListsResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ListsResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ListsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *ListsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ListsResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// ListsResponseable
+type ListsResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/login_request.go b/sdks/golang/client/models/login_request.go
new file mode 100644
index 00000000..1a83f747
--- /dev/null
+++ b/sdks/golang/client/models/login_request.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// LoginRequest
+type LoginRequest struct {
+ // The abha_address property
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewLoginRequest instantiates a new LoginRequest and sets the default values.
+func NewLoginRequest()(*LoginRequest) {
+ m := &LoginRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateLoginRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateLoginRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewLoginRequest(), nil
+}
+// GetAbhaAddress gets the abha_address property value. The abha_address property
+func (m *LoginRequest) GetAbhaAddress()(*string) {
+ return m.abha_address
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *LoginRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *LoginRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["abha_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *LoginRequest) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *LoginRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAbhaAddress sets the abha_address property value. The abha_address property
+func (m *LoginRequest) SetAbhaAddress(value *string)() {
+ m.abha_address = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *LoginRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *LoginRequest) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// LoginRequestable
+type LoginRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress()(*string)
+ GetTxnId()(*string)
+ SetAbhaAddress(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/login_response.go b/sdks/golang/client/models/login_response.go
new file mode 100644
index 00000000..b4c80f81
--- /dev/null
+++ b/sdks/golang/client/models/login_response.go
@@ -0,0 +1,163 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// LoginResponse
+type LoginResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The eka property
+ eka RegistrationEkaIdsable
+ // The profile property
+ profile ProfileResponseable
+ // The skip_state property
+ skip_state *LoginResponse_skip_state
+ // The txn_id property
+ txn_id *string
+}
+// NewLoginResponse instantiates a new LoginResponse and sets the default values.
+func NewLoginResponse()(*LoginResponse) {
+ m := &LoginResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateLoginResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateLoginResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewLoginResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *LoginResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetEka gets the eka property value. The eka property
+func (m *LoginResponse) GetEka()(RegistrationEkaIdsable) {
+ return m.eka
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *LoginResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["eka"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateRegistrationEkaIdsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEka(val.(RegistrationEkaIdsable))
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateProfileResponseFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(ProfileResponseable))
+ }
+ return nil
+ }
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseLoginResponse_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*LoginResponse_skip_state))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetProfile gets the profile property value. The profile property
+func (m *LoginResponse) GetProfile()(ProfileResponseable) {
+ return m.profile
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *LoginResponse) GetSkipState()(*LoginResponse_skip_state) {
+ return m.skip_state
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *LoginResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *LoginResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("eka", m.GetEka())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *LoginResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetEka sets the eka property value. The eka property
+func (m *LoginResponse) SetEka(value RegistrationEkaIdsable)() {
+ m.eka = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *LoginResponse) SetProfile(value ProfileResponseable)() {
+ m.profile = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *LoginResponse) SetSkipState(value *LoginResponse_skip_state)() {
+ m.skip_state = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *LoginResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// LoginResponseable
+type LoginResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetEka()(RegistrationEkaIdsable)
+ GetProfile()(ProfileResponseable)
+ GetSkipState()(*LoginResponse_skip_state)
+ GetTxnId()(*string)
+ SetEka(value RegistrationEkaIdsable)()
+ SetProfile(value ProfileResponseable)()
+ SetSkipState(value *LoginResponse_skip_state)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/login_response_skip_state.go b/sdks/golang/client/models/login_response_skip_state.go
new file mode 100644
index 00000000..8032252e
--- /dev/null
+++ b/sdks/golang/client/models/login_response_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type LoginResponse_skip_state int
+
+const (
+ ABHA_END_LOGINRESPONSE_SKIP_STATE LoginResponse_skip_state = iota
+ CONFIRM_MOBILE_OTP_LOGINRESPONSE_SKIP_STATE
+ ABHA_SELECT_LOGINRESPONSE_SKIP_STATE
+ ABHA_CREATE_LOGINRESPONSE_SKIP_STATE
+)
+
+func (i LoginResponse_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseLoginResponse_skip_state(v string) (any, error) {
+ result := ABHA_END_LOGINRESPONSE_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_LOGINRESPONSE_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_LOGINRESPONSE_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_LOGINRESPONSE_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_LOGINRESPONSE_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown LoginResponse_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeLoginResponse_skip_state(values []LoginResponse_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i LoginResponse_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/pincode_resolved_pincode_data.go b/sdks/golang/client/models/pincode_resolved_pincode_data.go
new file mode 100644
index 00000000..98d3e515
--- /dev/null
+++ b/sdks/golang/client/models/pincode_resolved_pincode_data.go
@@ -0,0 +1,190 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// PincodeResolvedPincodeData
+type PincodeResolvedPincodeData struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The dist_code property
+ dist_code *string
+ // The dist_name property
+ dist_name *string
+ // The pincode property
+ pincode *string
+ // The state_code property
+ state_code *string
+ // The state_name property
+ state_name *string
+}
+// NewPincodeResolvedPincodeData instantiates a new PincodeResolvedPincodeData and sets the default values.
+func NewPincodeResolvedPincodeData()(*PincodeResolvedPincodeData) {
+ m := &PincodeResolvedPincodeData{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreatePincodeResolvedPincodeDataFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreatePincodeResolvedPincodeDataFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewPincodeResolvedPincodeData(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *PincodeResolvedPincodeData) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetDistCode gets the dist_code property value. The dist_code property
+func (m *PincodeResolvedPincodeData) GetDistCode()(*string) {
+ return m.dist_code
+}
+// GetDistName gets the dist_name property value. The dist_name property
+func (m *PincodeResolvedPincodeData) GetDistName()(*string) {
+ return m.dist_name
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *PincodeResolvedPincodeData) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["dist_code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetDistCode(val)
+ }
+ return nil
+ }
+ res["dist_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetDistName(val)
+ }
+ return nil
+ }
+ res["pincode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPincode(val)
+ }
+ return nil
+ }
+ res["state_code"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetStateCode(val)
+ }
+ return nil
+ }
+ res["state_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetStateName(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetPincode gets the pincode property value. The pincode property
+func (m *PincodeResolvedPincodeData) GetPincode()(*string) {
+ return m.pincode
+}
+// GetStateCode gets the state_code property value. The state_code property
+func (m *PincodeResolvedPincodeData) GetStateCode()(*string) {
+ return m.state_code
+}
+// GetStateName gets the state_name property value. The state_name property
+func (m *PincodeResolvedPincodeData) GetStateName()(*string) {
+ return m.state_name
+}
+// Serialize serializes information the current object
+func (m *PincodeResolvedPincodeData) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("dist_code", m.GetDistCode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("dist_name", m.GetDistName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("pincode", m.GetPincode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("state_code", m.GetStateCode())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("state_name", m.GetStateName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *PincodeResolvedPincodeData) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetDistCode sets the dist_code property value. The dist_code property
+func (m *PincodeResolvedPincodeData) SetDistCode(value *string)() {
+ m.dist_code = value
+}
+// SetDistName sets the dist_name property value. The dist_name property
+func (m *PincodeResolvedPincodeData) SetDistName(value *string)() {
+ m.dist_name = value
+}
+// SetPincode sets the pincode property value. The pincode property
+func (m *PincodeResolvedPincodeData) SetPincode(value *string)() {
+ m.pincode = value
+}
+// SetStateCode sets the state_code property value. The state_code property
+func (m *PincodeResolvedPincodeData) SetStateCode(value *string)() {
+ m.state_code = value
+}
+// SetStateName sets the state_name property value. The state_name property
+func (m *PincodeResolvedPincodeData) SetStateName(value *string)() {
+ m.state_name = value
+}
+// PincodeResolvedPincodeDataable
+type PincodeResolvedPincodeDataable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetDistCode()(*string)
+ GetDistName()(*string)
+ GetPincode()(*string)
+ GetStateCode()(*string)
+ GetStateName()(*string)
+ SetDistCode(value *string)()
+ SetDistName(value *string)()
+ SetPincode(value *string)()
+ SetStateCode(value *string)()
+ SetStateName(value *string)()
+}
diff --git a/sdks/golang/client/models/profile_response.go b/sdks/golang/client/models/profile_response.go
new file mode 100644
index 00000000..cc3d02d8
--- /dev/null
+++ b/sdks/golang/client/models/profile_response.go
@@ -0,0 +1,107 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ProfileResponse
+type ProfileResponse struct {
+ // The abha_address property
+ abha_address *string
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The gender property
+ gender *ProfileResponse_gender
+}
+// NewProfileResponse instantiates a new ProfileResponse and sets the default values.
+func NewProfileResponse()(*ProfileResponse) {
+ m := &ProfileResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateProfileResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateProfileResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewProfileResponse(), nil
+}
+// GetAbhaAddress gets the abha_address property value. The abha_address property
+func (m *ProfileResponse) GetAbhaAddress()(*string) {
+ return m.abha_address
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProfileResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ProfileResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["abha_address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetAbhaAddress(val)
+ }
+ return nil
+ }
+ res["gender"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseProfileResponse_gender)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetGender(val.(*ProfileResponse_gender))
+ }
+ return nil
+ }
+ return res
+}
+// GetGender gets the gender property value. The gender property
+func (m *ProfileResponse) GetGender()(*ProfileResponse_gender) {
+ return m.gender
+}
+// Serialize serializes information the current object
+func (m *ProfileResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("abha_address", m.GetAbhaAddress())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetGender() != nil {
+ cast := (*m.GetGender()).String()
+ err := writer.WriteStringValue("gender", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAbhaAddress sets the abha_address property value. The abha_address property
+func (m *ProfileResponse) SetAbhaAddress(value *string)() {
+ m.abha_address = value
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProfileResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetGender sets the gender property value. The gender property
+func (m *ProfileResponse) SetGender(value *ProfileResponse_gender)() {
+ m.gender = value
+}
+// ProfileResponseable
+type ProfileResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetAbhaAddress()(*string)
+ GetGender()(*ProfileResponse_gender)
+ SetAbhaAddress(value *string)()
+ SetGender(value *ProfileResponse_gender)()
+}
diff --git a/sdks/golang/client/models/profile_response_gender.go b/sdks/golang/client/models/profile_response_gender.go
new file mode 100644
index 00000000..79f5920f
--- /dev/null
+++ b/sdks/golang/client/models/profile_response_gender.go
@@ -0,0 +1,40 @@
+package models
+import (
+ "errors"
+)
+//
+type ProfileResponse_gender int
+
+const (
+ M_PROFILERESPONSE_GENDER ProfileResponse_gender = iota
+ F_PROFILERESPONSE_GENDER
+ O_PROFILERESPONSE_GENDER
+)
+
+func (i ProfileResponse_gender) String() string {
+ return []string{"M", "F", "O"}[i]
+}
+func ParseProfileResponse_gender(v string) (any, error) {
+ result := M_PROFILERESPONSE_GENDER
+ switch v {
+ case "M":
+ result = M_PROFILERESPONSE_GENDER
+ case "F":
+ result = F_PROFILERESPONSE_GENDER
+ case "O":
+ result = O_PROFILERESPONSE_GENDER
+ default:
+ return 0, errors.New("Unknown ProfileResponse_gender value: " + v)
+ }
+ return &result, nil
+}
+func SerializeProfileResponse_gender(values []ProfileResponse_gender) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i ProfileResponse_gender) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/provider_response.go b/sdks/golang/client/models/provider_response.go
new file mode 100644
index 00000000..e3e9372c
--- /dev/null
+++ b/sdks/golang/client/models/provider_response.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ProviderResponse
+type ProviderResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewProviderResponse instantiates a new ProviderResponse and sets the default values.
+func NewProviderResponse()(*ProviderResponse) {
+ m := &ProviderResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateProviderResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateProviderResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewProviderResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProviderResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ProviderResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *ProviderResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProviderResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// ProviderResponseable
+type ProviderResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/provider_response_type2.go b/sdks/golang/client/models/provider_response_type2.go
new file mode 100644
index 00000000..8a042f0d
--- /dev/null
+++ b/sdks/golang/client/models/provider_response_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ProviderResponseType2
+type ProviderResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The hip_id property
+ hip_id *string
+}
+// NewProviderResponseType2 instantiates a new ProviderResponseType2 and sets the default values.
+func NewProviderResponseType2()(*ProviderResponseType2) {
+ m := &ProviderResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateProviderResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateProviderResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewProviderResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProviderResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ProviderResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["hip_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHipId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetHipId gets the hip_id property value. The hip_id property
+func (m *ProviderResponseType2) GetHipId()(*string) {
+ return m.hip_id
+}
+// Serialize serializes information the current object
+func (m *ProviderResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("hip_id", m.GetHipId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ProviderResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetHipId sets the hip_id property value. The hip_id property
+func (m *ProviderResponseType2) SetHipId(value *string)() {
+ m.hip_id = value
+}
+// ProviderResponseType2able
+type ProviderResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetHipId()(*string)
+ SetHipId(value *string)()
+}
diff --git a/sdks/golang/client/models/records_response.go b/sdks/golang/client/models/records_response.go
new file mode 100644
index 00000000..373b9a35
--- /dev/null
+++ b/sdks/golang/client/models/records_response.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// RecordsResponse
+type RecordsResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewRecordsResponse instantiates a new RecordsResponse and sets the default values.
+func NewRecordsResponse()(*RecordsResponse) {
+ m := &RecordsResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateRecordsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateRecordsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewRecordsResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RecordsResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *RecordsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *RecordsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RecordsResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// RecordsResponseable
+type RecordsResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/registration_eka_ids.go b/sdks/golang/client/models/registration_eka_ids.go
new file mode 100644
index 00000000..62f4483a
--- /dev/null
+++ b/sdks/golang/client/models/registration_eka_ids.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// RegistrationEkaIds
+type RegistrationEkaIds struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewRegistrationEkaIds instantiates a new RegistrationEkaIds and sets the default values.
+func NewRegistrationEkaIds()(*RegistrationEkaIds) {
+ m := &RegistrationEkaIds{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateRegistrationEkaIdsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateRegistrationEkaIdsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewRegistrationEkaIds(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RegistrationEkaIds) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *RegistrationEkaIds) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *RegistrationEkaIds) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RegistrationEkaIds) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// RegistrationEkaIdsable
+type RegistrationEkaIdsable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/resend_request.go b/sdks/golang/client/models/resend_request.go
new file mode 100644
index 00000000..46180eeb
--- /dev/null
+++ b/sdks/golang/client/models/resend_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendRequest
+type ResendRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The txn_id property
+ txn_id *string
+}
+// NewResendRequest instantiates a new ResendRequest and sets the default values.
+func NewResendRequest()(*ResendRequest) {
+ m := &ResendRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *ResendRequest) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *ResendRequest) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendRequestable
+type ResendRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/resend_request_type2.go b/sdks/golang/client/models/resend_request_type2.go
new file mode 100644
index 00000000..08317ddb
--- /dev/null
+++ b/sdks/golang/client/models/resend_request_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendRequestType2
+type ResendRequestType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the init API
+ txn_id *string
+}
+// NewResendRequestType2 instantiates a new ResendRequestType2 and sets the default values.
+func NewResendRequestType2()(*ResendRequestType2) {
+ m := &ResendRequestType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendRequestType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendRequestType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendRequestType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequestType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendRequestType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the init API
+func (m *ResendRequestType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendRequestType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequestType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the init API
+func (m *ResendRequestType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendRequestType2able
+type ResendRequestType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/resend_request_type3.go b/sdks/golang/client/models/resend_request_type3.go
new file mode 100644
index 00000000..18ffadf5
--- /dev/null
+++ b/sdks/golang/client/models/resend_request_type3.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendRequestType3
+type ResendRequestType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewResendRequestType3 instantiates a new ResendRequestType3 and sets the default values.
+func NewResendRequestType3()(*ResendRequestType3) {
+ m := &ResendRequestType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendRequestType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendRequestType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendRequestType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequestType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendRequestType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *ResendRequestType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendRequestType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendRequestType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *ResendRequestType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendRequestType3able
+type ResendRequestType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/resend_response.go b/sdks/golang/client/models/resend_response.go
new file mode 100644
index 00000000..7d360e1c
--- /dev/null
+++ b/sdks/golang/client/models/resend_response.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendResponse
+type ResendResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the init API
+ txn_id *string
+}
+// NewResendResponse instantiates a new ResendResponse and sets the default values.
+func NewResendResponse()(*ResendResponse) {
+ m := &ResendResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the init API
+func (m *ResendResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the init API
+func (m *ResendResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendResponseable
+type ResendResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/resend_response_type2.go b/sdks/golang/client/models/resend_response_type2.go
new file mode 100644
index 00000000..429790f1
--- /dev/null
+++ b/sdks/golang/client/models/resend_response_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendResponseType2
+type ResendResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The txn_id property
+ txn_id *string
+}
+// NewResendResponseType2 instantiates a new ResendResponseType2 and sets the default values.
+func NewResendResponseType2()(*ResendResponseType2) {
+ m := &ResendResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *ResendResponseType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *ResendResponseType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendResponseType2able
+type ResendResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/resend_response_type3.go b/sdks/golang/client/models/resend_response_type3.go
new file mode 100644
index 00000000..f3993e2f
--- /dev/null
+++ b/sdks/golang/client/models/resend_response_type3.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ResendResponseType3
+type ResendResponseType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The hint property
+ hint *string
+ // The txn_id property
+ txn_id *string
+}
+// NewResendResponseType3 instantiates a new ResendResponseType3 and sets the default values.
+func NewResendResponseType3()(*ResendResponseType3) {
+ m := &ResendResponseType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateResendResponseType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateResendResponseType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewResendResponseType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponseType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ResendResponseType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["hint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHint(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetHint gets the hint property value. The hint property
+func (m *ResendResponseType3) GetHint()(*string) {
+ return m.hint
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *ResendResponseType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *ResendResponseType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("hint", m.GetHint())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ResendResponseType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetHint sets the hint property value. The hint property
+func (m *ResendResponseType3) SetHint(value *string)() {
+ m.hint = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *ResendResponseType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// ResendResponseType3able
+type ResendResponseType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetHint()(*string)
+ GetTxnId()(*string)
+ SetHint(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/revoke_request.go b/sdks/golang/client/models/revoke_request.go
new file mode 100644
index 00000000..077869bc
--- /dev/null
+++ b/sdks/golang/client/models/revoke_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// RevokeRequest
+type RevokeRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The pin_detail property
+ pin_detail CommonsPinDetailable
+}
+// NewRevokeRequest instantiates a new RevokeRequest and sets the default values.
+func NewRevokeRequest()(*RevokeRequest) {
+ m := &RevokeRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateRevokeRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateRevokeRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewRevokeRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RevokeRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *RevokeRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["pin_detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateCommonsPinDetailFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPinDetail(val.(CommonsPinDetailable))
+ }
+ return nil
+ }
+ return res
+}
+// GetPinDetail gets the pin_detail property value. The pin_detail property
+func (m *RevokeRequest) GetPinDetail()(CommonsPinDetailable) {
+ return m.pin_detail
+}
+// Serialize serializes information the current object
+func (m *RevokeRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("pin_detail", m.GetPinDetail())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *RevokeRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetPinDetail sets the pin_detail property value. The pin_detail property
+func (m *RevokeRequest) SetPinDetail(value CommonsPinDetailable)() {
+ m.pin_detail = value
+}
+// RevokeRequestable
+type RevokeRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetPinDetail()(CommonsPinDetailable)
+ SetPinDetail(value CommonsPinDetailable)()
+}
diff --git a/sdks/golang/client/models/scanandshare_request.go b/sdks/golang/client/models/scanandshare_request.go
new file mode 100644
index 00000000..f881eeca
--- /dev/null
+++ b/sdks/golang/client/models/scanandshare_request.go
@@ -0,0 +1,134 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// ScanandshareRequest
+type ScanandshareRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Counter ID
+ counter_id *string
+ // HIP ID from QR Code
+ hip_id *string
+ // The location property
+ location HipLocationable
+}
+// NewScanandshareRequest instantiates a new ScanandshareRequest and sets the default values.
+func NewScanandshareRequest()(*ScanandshareRequest) {
+ m := &ScanandshareRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateScanandshareRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateScanandshareRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewScanandshareRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ScanandshareRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetCounterId gets the counter_id property value. Counter ID
+func (m *ScanandshareRequest) GetCounterId()(*string) {
+ return m.counter_id
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *ScanandshareRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["counter_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetCounterId(val)
+ }
+ return nil
+ }
+ res["hip_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetHipId(val)
+ }
+ return nil
+ }
+ res["location"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateHipLocationFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetLocation(val.(HipLocationable))
+ }
+ return nil
+ }
+ return res
+}
+// GetHipId gets the hip_id property value. HIP ID from QR Code
+func (m *ScanandshareRequest) GetHipId()(*string) {
+ return m.hip_id
+}
+// GetLocation gets the location property value. The location property
+func (m *ScanandshareRequest) GetLocation()(HipLocationable) {
+ return m.location
+}
+// Serialize serializes information the current object
+func (m *ScanandshareRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("counter_id", m.GetCounterId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("hip_id", m.GetHipId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("location", m.GetLocation())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *ScanandshareRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetCounterId sets the counter_id property value. Counter ID
+func (m *ScanandshareRequest) SetCounterId(value *string)() {
+ m.counter_id = value
+}
+// SetHipId sets the hip_id property value. HIP ID from QR Code
+func (m *ScanandshareRequest) SetHipId(value *string)() {
+ m.hip_id = value
+}
+// SetLocation sets the location property value. The location property
+func (m *ScanandshareRequest) SetLocation(value HipLocationable)() {
+ m.location = value
+}
+// ScanandshareRequestable
+type ScanandshareRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetCounterId()(*string)
+ GetHipId()(*string)
+ GetLocation()(HipLocationable)
+ SetCounterId(value *string)()
+ SetHipId(value *string)()
+ SetLocation(value HipLocationable)()
+}
diff --git a/sdks/golang/client/models/set_request.go b/sdks/golang/client/models/set_request.go
new file mode 100644
index 00000000..55520d7c
--- /dev/null
+++ b/sdks/golang/client/models/set_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// SetRequest
+type SetRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The pin property
+ pin *string
+}
+// NewSetRequest instantiates a new SetRequest and sets the default values.
+func NewSetRequest()(*SetRequest) {
+ m := &SetRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateSetRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateSetRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewSetRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SetRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *SetRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["pin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPin(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetPin gets the pin property value. The pin property
+func (m *SetRequest) GetPin()(*string) {
+ return m.pin
+}
+// Serialize serializes information the current object
+func (m *SetRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("pin", m.GetPin())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SetRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetPin sets the pin property value. The pin property
+func (m *SetRequest) SetPin(value *string)() {
+ m.pin = value
+}
+// SetRequestable
+type SetRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetPin()(*string)
+ SetPin(value *string)()
+}
diff --git a/sdks/golang/client/models/suggest_request.go b/sdks/golang/client/models/suggest_request.go
new file mode 100644
index 00000000..0a3e07dd
--- /dev/null
+++ b/sdks/golang/client/models/suggest_request.go
@@ -0,0 +1,135 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// SuggestRequest
+type SuggestRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The flow property
+ flow *SuggestRequest_flow
+ // Transaction ID received in /init api
+ txn_id *string
+ // The user_detail property
+ user_detail SuggestUserDetailable
+}
+// NewSuggestRequest instantiates a new SuggestRequest and sets the default values.
+func NewSuggestRequest()(*SuggestRequest) {
+ m := &SuggestRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateSuggestRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateSuggestRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewSuggestRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *SuggestRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["flow"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseSuggestRequest_flow)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetFlow(val.(*SuggestRequest_flow))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ res["user_detail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateSuggestUserDetailFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetUserDetail(val.(SuggestUserDetailable))
+ }
+ return nil
+ }
+ return res
+}
+// GetFlow gets the flow property value. The flow property
+func (m *SuggestRequest) GetFlow()(*SuggestRequest_flow) {
+ return m.flow
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in /init api
+func (m *SuggestRequest) GetTxnId()(*string) {
+ return m.txn_id
+}
+// GetUserDetail gets the user_detail property value. The user_detail property
+func (m *SuggestRequest) GetUserDetail()(SuggestUserDetailable) {
+ return m.user_detail
+}
+// Serialize serializes information the current object
+func (m *SuggestRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ if m.GetFlow() != nil {
+ cast := (*m.GetFlow()).String()
+ err := writer.WriteStringValue("flow", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("user_detail", m.GetUserDetail())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetFlow sets the flow property value. The flow property
+func (m *SuggestRequest) SetFlow(value *SuggestRequest_flow)() {
+ m.flow = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in /init api
+func (m *SuggestRequest) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// SetUserDetail sets the user_detail property value. The user_detail property
+func (m *SuggestRequest) SetUserDetail(value SuggestUserDetailable)() {
+ m.user_detail = value
+}
+// SuggestRequestable
+type SuggestRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetFlow()(*SuggestRequest_flow)
+ GetTxnId()(*string)
+ GetUserDetail()(SuggestUserDetailable)
+ SetFlow(value *SuggestRequest_flow)()
+ SetTxnId(value *string)()
+ SetUserDetail(value SuggestUserDetailable)()
+}
diff --git a/sdks/golang/client/models/suggest_request_flow.go b/sdks/golang/client/models/suggest_request_flow.go
new file mode 100644
index 00000000..3c424c8b
--- /dev/null
+++ b/sdks/golang/client/models/suggest_request_flow.go
@@ -0,0 +1,37 @@
+package models
+import (
+ "errors"
+)
+//
+type SuggestRequest_flow int
+
+const (
+ AADHAAR_SUGGESTREQUEST_FLOW SuggestRequest_flow = iota
+ MOBILE_SUGGESTREQUEST_FLOW
+)
+
+func (i SuggestRequest_flow) String() string {
+ return []string{"aadhaar", "mobile"}[i]
+}
+func ParseSuggestRequest_flow(v string) (any, error) {
+ result := AADHAAR_SUGGESTREQUEST_FLOW
+ switch v {
+ case "aadhaar":
+ result = AADHAAR_SUGGESTREQUEST_FLOW
+ case "mobile":
+ result = MOBILE_SUGGESTREQUEST_FLOW
+ default:
+ return 0, errors.New("Unknown SuggestRequest_flow value: " + v)
+ }
+ return &result, nil
+}
+func SerializeSuggestRequest_flow(values []SuggestRequest_flow) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i SuggestRequest_flow) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/suggest_response.go b/sdks/golang/client/models/suggest_response.go
new file mode 100644
index 00000000..b5cdae9d
--- /dev/null
+++ b/sdks/golang/client/models/suggest_response.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// SuggestResponse
+type SuggestResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewSuggestResponse instantiates a new SuggestResponse and sets the default values.
+func NewSuggestResponse()(*SuggestResponse) {
+ m := &SuggestResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateSuggestResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateSuggestResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewSuggestResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *SuggestResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *SuggestResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SuggestResponseable
+type SuggestResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/client/models/suggest_user_detail.go b/sdks/golang/client/models/suggest_user_detail.go
new file mode 100644
index 00000000..225f19e1
--- /dev/null
+++ b/sdks/golang/client/models/suggest_user_detail.go
@@ -0,0 +1,190 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// SuggestUserDetail
+type SuggestUserDetail struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The day_of_birth property
+ day_of_birth *string
+ // The first_name property
+ first_name *string
+ // The last_name property
+ last_name *string
+ // The month_of_birth property
+ month_of_birth *string
+ // The year_of_birth property
+ year_of_birth *string
+}
+// NewSuggestUserDetail instantiates a new SuggestUserDetail and sets the default values.
+func NewSuggestUserDetail()(*SuggestUserDetail) {
+ m := &SuggestUserDetail{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateSuggestUserDetailFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateSuggestUserDetailFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewSuggestUserDetail(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestUserDetail) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetDayOfBirth gets the day_of_birth property value. The day_of_birth property
+func (m *SuggestUserDetail) GetDayOfBirth()(*string) {
+ return m.day_of_birth
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *SuggestUserDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["day_of_birth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetDayOfBirth(val)
+ }
+ return nil
+ }
+ res["first_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetFirstName(val)
+ }
+ return nil
+ }
+ res["last_name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetLastName(val)
+ }
+ return nil
+ }
+ res["month_of_birth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetMonthOfBirth(val)
+ }
+ return nil
+ }
+ res["year_of_birth"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetYearOfBirth(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetFirstName gets the first_name property value. The first_name property
+func (m *SuggestUserDetail) GetFirstName()(*string) {
+ return m.first_name
+}
+// GetLastName gets the last_name property value. The last_name property
+func (m *SuggestUserDetail) GetLastName()(*string) {
+ return m.last_name
+}
+// GetMonthOfBirth gets the month_of_birth property value. The month_of_birth property
+func (m *SuggestUserDetail) GetMonthOfBirth()(*string) {
+ return m.month_of_birth
+}
+// GetYearOfBirth gets the year_of_birth property value. The year_of_birth property
+func (m *SuggestUserDetail) GetYearOfBirth()(*string) {
+ return m.year_of_birth
+}
+// Serialize serializes information the current object
+func (m *SuggestUserDetail) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("day_of_birth", m.GetDayOfBirth())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("first_name", m.GetFirstName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("last_name", m.GetLastName())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("month_of_birth", m.GetMonthOfBirth())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("year_of_birth", m.GetYearOfBirth())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *SuggestUserDetail) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetDayOfBirth sets the day_of_birth property value. The day_of_birth property
+func (m *SuggestUserDetail) SetDayOfBirth(value *string)() {
+ m.day_of_birth = value
+}
+// SetFirstName sets the first_name property value. The first_name property
+func (m *SuggestUserDetail) SetFirstName(value *string)() {
+ m.first_name = value
+}
+// SetLastName sets the last_name property value. The last_name property
+func (m *SuggestUserDetail) SetLastName(value *string)() {
+ m.last_name = value
+}
+// SetMonthOfBirth sets the month_of_birth property value. The month_of_birth property
+func (m *SuggestUserDetail) SetMonthOfBirth(value *string)() {
+ m.month_of_birth = value
+}
+// SetYearOfBirth sets the year_of_birth property value. The year_of_birth property
+func (m *SuggestUserDetail) SetYearOfBirth(value *string)() {
+ m.year_of_birth = value
+}
+// SuggestUserDetailable
+type SuggestUserDetailable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetDayOfBirth()(*string)
+ GetFirstName()(*string)
+ GetLastName()(*string)
+ GetMonthOfBirth()(*string)
+ GetYearOfBirth()(*string)
+ SetDayOfBirth(value *string)()
+ SetFirstName(value *string)()
+ SetLastName(value *string)()
+ SetMonthOfBirth(value *string)()
+ SetYearOfBirth(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request.go b/sdks/golang/client/models/verify_request.go
new file mode 100644
index 00000000..932a693c
--- /dev/null
+++ b/sdks/golang/client/models/verify_request.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequest
+type VerifyRequest struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The txn_id property
+ txn_id *string
+}
+// NewVerifyRequest instantiates a new VerifyRequest and sets the default values.
+func NewVerifyRequest()(*VerifyRequest) {
+ m := &VerifyRequest{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequest(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequest) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *VerifyRequest) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequest) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *VerifyRequest) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyRequestable
+type VerifyRequestable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request_type2.go b/sdks/golang/client/models/verify_request_type2.go
new file mode 100644
index 00000000..380be8a1
--- /dev/null
+++ b/sdks/golang/client/models/verify_request_type2.go
@@ -0,0 +1,78 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequestType2
+type VerifyRequestType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewVerifyRequestType2 instantiates a new VerifyRequestType2 and sets the default values.
+func NewVerifyRequestType2()(*VerifyRequestType2) {
+ m := &VerifyRequestType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequestType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequestType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyRequestType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyRequestType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyRequestType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyRequestType2able
+type VerifyRequestType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetTxnId()(*string)
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request_type3.go b/sdks/golang/client/models/verify_request_type3.go
new file mode 100644
index 00000000..5a3a62f2
--- /dev/null
+++ b/sdks/golang/client/models/verify_request_type3.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequestType3
+type VerifyRequestType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The otp property
+ otp *string
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewVerifyRequestType3 instantiates a new VerifyRequestType3 and sets the default values.
+func NewVerifyRequestType3()(*VerifyRequestType3) {
+ m := &VerifyRequestType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequestType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequestType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["otp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOtp(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetOtp gets the otp property value. The otp property
+func (m *VerifyRequestType3) GetOtp()(*string) {
+ return m.otp
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyRequestType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyRequestType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("otp", m.GetOtp())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetOtp sets the otp property value. The otp property
+func (m *VerifyRequestType3) SetOtp(value *string)() {
+ m.otp = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyRequestType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyRequestType3able
+type VerifyRequestType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetOtp()(*string)
+ GetTxnId()(*string)
+ SetOtp(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request_type4.go b/sdks/golang/client/models/verify_request_type4.go
new file mode 100644
index 00000000..1384a515
--- /dev/null
+++ b/sdks/golang/client/models/verify_request_type4.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequestType4
+type VerifyRequestType4 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The pin property
+ pin *string
+ // The scope property
+ scope *string
+}
+// NewVerifyRequestType4 instantiates a new VerifyRequestType4 and sets the default values.
+func NewVerifyRequestType4()(*VerifyRequestType4) {
+ m := &VerifyRequestType4{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestType4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestType4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequestType4(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType4) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequestType4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["pin"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetPin(val)
+ }
+ return nil
+ }
+ res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetScope(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetPin gets the pin property value. The pin property
+func (m *VerifyRequestType4) GetPin()(*string) {
+ return m.pin
+}
+// GetScope gets the scope property value. The scope property
+func (m *VerifyRequestType4) GetScope()(*string) {
+ return m.scope
+}
+// Serialize serializes information the current object
+func (m *VerifyRequestType4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("pin", m.GetPin())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("scope", m.GetScope())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType4) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetPin sets the pin property value. The pin property
+func (m *VerifyRequestType4) SetPin(value *string)() {
+ m.pin = value
+}
+// SetScope sets the scope property value. The scope property
+func (m *VerifyRequestType4) SetScope(value *string)() {
+ m.scope = value
+}
+// VerifyRequestType4able
+type VerifyRequestType4able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetPin()(*string)
+ GetScope()(*string)
+ SetPin(value *string)()
+ SetScope(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request_type5.go b/sdks/golang/client/models/verify_request_type5.go
new file mode 100644
index 00000000..dca3d5a9
--- /dev/null
+++ b/sdks/golang/client/models/verify_request_type5.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequestType5
+type VerifyRequestType5 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The otp property
+ otp *string
+ // The txn_id property
+ txn_id *string
+}
+// NewVerifyRequestType5 instantiates a new VerifyRequestType5 and sets the default values.
+func NewVerifyRequestType5()(*VerifyRequestType5) {
+ m := &VerifyRequestType5{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestType5FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestType5FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequestType5(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType5) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequestType5) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["otp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOtp(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetOtp gets the otp property value. The otp property
+func (m *VerifyRequestType5) GetOtp()(*string) {
+ return m.otp
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *VerifyRequestType5) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyRequestType5) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("otp", m.GetOtp())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType5) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetOtp sets the otp property value. The otp property
+func (m *VerifyRequestType5) SetOtp(value *string)() {
+ m.otp = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *VerifyRequestType5) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyRequestType5able
+type VerifyRequestType5able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetOtp()(*string)
+ GetTxnId()(*string)
+ SetOtp(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_request_type6.go b/sdks/golang/client/models/verify_request_type6.go
new file mode 100644
index 00000000..c56227c6
--- /dev/null
+++ b/sdks/golang/client/models/verify_request_type6.go
@@ -0,0 +1,106 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyRequestType6
+type VerifyRequestType6 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The otp property
+ otp *string
+ // Transaction ID for the session
+ txn_id *string
+}
+// NewVerifyRequestType6 instantiates a new VerifyRequestType6 and sets the default values.
+func NewVerifyRequestType6()(*VerifyRequestType6) {
+ m := &VerifyRequestType6{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyRequestType6FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyRequestType6FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyRequestType6(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType6) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyRequestType6) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["otp"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetOtp(val)
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetOtp gets the otp property value. The otp property
+func (m *VerifyRequestType6) GetOtp()(*string) {
+ return m.otp
+}
+// GetTxnId gets the txn_id property value. Transaction ID for the session
+func (m *VerifyRequestType6) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyRequestType6) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteStringValue("otp", m.GetOtp())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyRequestType6) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetOtp sets the otp property value. The otp property
+func (m *VerifyRequestType6) SetOtp(value *string)() {
+ m.otp = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID for the session
+func (m *VerifyRequestType6) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyRequestType6able
+type VerifyRequestType6able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetOtp()(*string)
+ GetTxnId()(*string)
+ SetOtp(value *string)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_response.go b/sdks/golang/client/models/verify_response.go
new file mode 100644
index 00000000..3ca18522
--- /dev/null
+++ b/sdks/golang/client/models/verify_response.go
@@ -0,0 +1,163 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyResponse
+type VerifyResponse struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The eka property
+ eka RegistrationEkaIdsable
+ // The profile property
+ profile ProfileResponseable
+ // The skip_state property
+ skip_state *VerifyResponse_skip_state
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewVerifyResponse instantiates a new VerifyResponse and sets the default values.
+func NewVerifyResponse()(*VerifyResponse) {
+ m := &VerifyResponse{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyResponse(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponse) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetEka gets the eka property value. The eka property
+func (m *VerifyResponse) GetEka()(RegistrationEkaIdsable) {
+ return m.eka
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["eka"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateRegistrationEkaIdsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEka(val.(RegistrationEkaIdsable))
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateProfileResponseFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(ProfileResponseable))
+ }
+ return nil
+ }
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseVerifyResponse_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*VerifyResponse_skip_state))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetProfile gets the profile property value. The profile property
+func (m *VerifyResponse) GetProfile()(ProfileResponseable) {
+ return m.profile
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *VerifyResponse) GetSkipState()(*VerifyResponse_skip_state) {
+ return m.skip_state
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyResponse) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("eka", m.GetEka())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponse) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetEka sets the eka property value. The eka property
+func (m *VerifyResponse) SetEka(value RegistrationEkaIdsable)() {
+ m.eka = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *VerifyResponse) SetProfile(value ProfileResponseable)() {
+ m.profile = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *VerifyResponse) SetSkipState(value *VerifyResponse_skip_state)() {
+ m.skip_state = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyResponse) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyResponseable
+type VerifyResponseable interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetEka()(RegistrationEkaIdsable)
+ GetProfile()(ProfileResponseable)
+ GetSkipState()(*VerifyResponse_skip_state)
+ GetTxnId()(*string)
+ SetEka(value RegistrationEkaIdsable)()
+ SetProfile(value ProfileResponseable)()
+ SetSkipState(value *VerifyResponse_skip_state)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_response_skip_state.go b/sdks/golang/client/models/verify_response_skip_state.go
new file mode 100644
index 00000000..2c7686eb
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type VerifyResponse_skip_state int
+
+const (
+ ABHA_END_VERIFYRESPONSE_SKIP_STATE VerifyResponse_skip_state = iota
+ CONFIRM_MOBILE_OTP_VERIFYRESPONSE_SKIP_STATE
+ ABHA_SELECT_VERIFYRESPONSE_SKIP_STATE
+ ABHA_CREATE_VERIFYRESPONSE_SKIP_STATE
+)
+
+func (i VerifyResponse_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseVerifyResponse_skip_state(v string) (any, error) {
+ result := ABHA_END_VERIFYRESPONSE_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_VERIFYRESPONSE_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_VERIFYRESPONSE_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_VERIFYRESPONSE_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_VERIFYRESPONSE_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown VerifyResponse_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeVerifyResponse_skip_state(values []VerifyResponse_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i VerifyResponse_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/verify_response_type2.go b/sdks/golang/client/models/verify_response_type2.go
new file mode 100644
index 00000000..4c532ea1
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_type2.go
@@ -0,0 +1,163 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyResponseType2
+type VerifyResponseType2 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The eka property
+ eka RegistrationEkaIdsable
+ // The profile property
+ profile ProfileResponseable
+ // The skip_state property
+ skip_state *VerifyResponseType2_skip_state
+ // Transaction ID received in the /init API
+ txn_id *string
+}
+// NewVerifyResponseType2 instantiates a new VerifyResponseType2 and sets the default values.
+func NewVerifyResponseType2()(*VerifyResponseType2) {
+ m := &VerifyResponseType2{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyResponseType2FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyResponseType2FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyResponseType2(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType2) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetEka gets the eka property value. The eka property
+func (m *VerifyResponseType2) GetEka()(RegistrationEkaIdsable) {
+ return m.eka
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyResponseType2) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["eka"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateRegistrationEkaIdsFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetEka(val.(RegistrationEkaIdsable))
+ }
+ return nil
+ }
+ res["profile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetObjectValue(CreateProfileResponseFromDiscriminatorValue)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetProfile(val.(ProfileResponseable))
+ }
+ return nil
+ }
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseVerifyResponseType2_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*VerifyResponseType2_skip_state))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetProfile gets the profile property value. The profile property
+func (m *VerifyResponseType2) GetProfile()(ProfileResponseable) {
+ return m.profile
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *VerifyResponseType2) GetSkipState()(*VerifyResponseType2_skip_state) {
+ return m.skip_state
+}
+// GetTxnId gets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyResponseType2) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyResponseType2) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteObjectValue("eka", m.GetEka())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteObjectValue("profile", m.GetProfile())
+ if err != nil {
+ return err
+ }
+ }
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType2) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetEka sets the eka property value. The eka property
+func (m *VerifyResponseType2) SetEka(value RegistrationEkaIdsable)() {
+ m.eka = value
+}
+// SetProfile sets the profile property value. The profile property
+func (m *VerifyResponseType2) SetProfile(value ProfileResponseable)() {
+ m.profile = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *VerifyResponseType2) SetSkipState(value *VerifyResponseType2_skip_state)() {
+ m.skip_state = value
+}
+// SetTxnId sets the txn_id property value. Transaction ID received in the /init API
+func (m *VerifyResponseType2) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyResponseType2able
+type VerifyResponseType2able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetEka()(RegistrationEkaIdsable)
+ GetProfile()(ProfileResponseable)
+ GetSkipState()(*VerifyResponseType2_skip_state)
+ GetTxnId()(*string)
+ SetEka(value RegistrationEkaIdsable)()
+ SetProfile(value ProfileResponseable)()
+ SetSkipState(value *VerifyResponseType2_skip_state)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_response_type2_skip_state.go b/sdks/golang/client/models/verify_response_type2_skip_state.go
new file mode 100644
index 00000000..eda8cc16
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_type2_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type VerifyResponseType2_skip_state int
+
+const (
+ ABHA_END_VERIFYRESPONSETYPE2_SKIP_STATE VerifyResponseType2_skip_state = iota
+ CONFIRM_MOBILE_OTP_VERIFYRESPONSETYPE2_SKIP_STATE
+ ABHA_SELECT_VERIFYRESPONSETYPE2_SKIP_STATE
+ ABHA_CREATE_VERIFYRESPONSETYPE2_SKIP_STATE
+)
+
+func (i VerifyResponseType2_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseVerifyResponseType2_skip_state(v string) (any, error) {
+ result := ABHA_END_VERIFYRESPONSETYPE2_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_VERIFYRESPONSETYPE2_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_VERIFYRESPONSETYPE2_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_VERIFYRESPONSETYPE2_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_VERIFYRESPONSETYPE2_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown VerifyResponseType2_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeVerifyResponseType2_skip_state(values []VerifyResponseType2_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i VerifyResponseType2_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/verify_response_type3.go b/sdks/golang/client/models/verify_response_type3.go
new file mode 100644
index 00000000..cf4edb26
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_type3.go
@@ -0,0 +1,107 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyResponseType3
+type VerifyResponseType3 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+ // The skip_state property
+ skip_state *VerifyResponseType3_skip_state
+ // The txn_id property
+ txn_id *string
+}
+// NewVerifyResponseType3 instantiates a new VerifyResponseType3 and sets the default values.
+func NewVerifyResponseType3()(*VerifyResponseType3) {
+ m := &VerifyResponseType3{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyResponseType3FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyResponseType3FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyResponseType3(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType3) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyResponseType3) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ res["skip_state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetEnumValue(ParseVerifyResponseType3_skip_state)
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetSkipState(val.(*VerifyResponseType3_skip_state))
+ }
+ return nil
+ }
+ res["txn_id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
+ val, err := n.GetStringValue()
+ if err != nil {
+ return err
+ }
+ if val != nil {
+ m.SetTxnId(val)
+ }
+ return nil
+ }
+ return res
+}
+// GetSkipState gets the skip_state property value. The skip_state property
+func (m *VerifyResponseType3) GetSkipState()(*VerifyResponseType3_skip_state) {
+ return m.skip_state
+}
+// GetTxnId gets the txn_id property value. The txn_id property
+func (m *VerifyResponseType3) GetTxnId()(*string) {
+ return m.txn_id
+}
+// Serialize serializes information the current object
+func (m *VerifyResponseType3) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ if m.GetSkipState() != nil {
+ cast := (*m.GetSkipState()).String()
+ err := writer.WriteStringValue("skip_state", &cast)
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteStringValue("txn_id", m.GetTxnId())
+ if err != nil {
+ return err
+ }
+ }
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType3) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// SetSkipState sets the skip_state property value. The skip_state property
+func (m *VerifyResponseType3) SetSkipState(value *VerifyResponseType3_skip_state)() {
+ m.skip_state = value
+}
+// SetTxnId sets the txn_id property value. The txn_id property
+func (m *VerifyResponseType3) SetTxnId(value *string)() {
+ m.txn_id = value
+}
+// VerifyResponseType3able
+type VerifyResponseType3able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+ GetSkipState()(*VerifyResponseType3_skip_state)
+ GetTxnId()(*string)
+ SetSkipState(value *VerifyResponseType3_skip_state)()
+ SetTxnId(value *string)()
+}
diff --git a/sdks/golang/client/models/verify_response_type3_skip_state.go b/sdks/golang/client/models/verify_response_type3_skip_state.go
new file mode 100644
index 00000000..74478125
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_type3_skip_state.go
@@ -0,0 +1,43 @@
+package models
+import (
+ "errors"
+)
+//
+type VerifyResponseType3_skip_state int
+
+const (
+ ABHA_END_VERIFYRESPONSETYPE3_SKIP_STATE VerifyResponseType3_skip_state = iota
+ CONFIRM_MOBILE_OTP_VERIFYRESPONSETYPE3_SKIP_STATE
+ ABHA_SELECT_VERIFYRESPONSETYPE3_SKIP_STATE
+ ABHA_CREATE_VERIFYRESPONSETYPE3_SKIP_STATE
+)
+
+func (i VerifyResponseType3_skip_state) String() string {
+ return []string{"abha_end", "confirm_mobile_otp", "abha_select", "abha_create"}[i]
+}
+func ParseVerifyResponseType3_skip_state(v string) (any, error) {
+ result := ABHA_END_VERIFYRESPONSETYPE3_SKIP_STATE
+ switch v {
+ case "abha_end":
+ result = ABHA_END_VERIFYRESPONSETYPE3_SKIP_STATE
+ case "confirm_mobile_otp":
+ result = CONFIRM_MOBILE_OTP_VERIFYRESPONSETYPE3_SKIP_STATE
+ case "abha_select":
+ result = ABHA_SELECT_VERIFYRESPONSETYPE3_SKIP_STATE
+ case "abha_create":
+ result = ABHA_CREATE_VERIFYRESPONSETYPE3_SKIP_STATE
+ default:
+ return 0, errors.New("Unknown VerifyResponseType3_skip_state value: " + v)
+ }
+ return &result, nil
+}
+func SerializeVerifyResponseType3_skip_state(values []VerifyResponseType3_skip_state) []string {
+ result := make([]string, len(values))
+ for i, v := range values {
+ result[i] = v.String()
+ }
+ return result
+}
+func (i VerifyResponseType3_skip_state) isMultiValue() bool {
+ return false
+}
diff --git a/sdks/golang/client/models/verify_response_type4.go b/sdks/golang/client/models/verify_response_type4.go
new file mode 100644
index 00000000..2fdad5be
--- /dev/null
+++ b/sdks/golang/client/models/verify_response_type4.go
@@ -0,0 +1,50 @@
+package models
+
+import (
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
+)
+
+// VerifyResponseType4
+type VerifyResponseType4 struct {
+ // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ additionalData map[string]any
+}
+// NewVerifyResponseType4 instantiates a new VerifyResponseType4 and sets the default values.
+func NewVerifyResponseType4()(*VerifyResponseType4) {
+ m := &VerifyResponseType4{
+ }
+ m.SetAdditionalData(make(map[string]any))
+ return m
+}
+// CreateVerifyResponseType4FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
+func CreateVerifyResponseType4FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
+ return NewVerifyResponseType4(), nil
+}
+// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType4) GetAdditionalData()(map[string]any) {
+ return m.additionalData
+}
+// GetFieldDeserializers the deserialization information for the current model
+func (m *VerifyResponseType4) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
+}
+// Serialize serializes information the current object
+func (m *VerifyResponseType4) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
+ {
+ err := writer.WriteAdditionalData(m.GetAdditionalData())
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+func (m *VerifyResponseType4) SetAdditionalData(value map[string]any)() {
+ m.additionalData = value
+}
+// VerifyResponseType4able
+type VerifyResponseType4able interface {
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
+ i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
+}
diff --git a/sdks/golang/go.mod b/sdks/golang/go.mod
new file mode 100644
index 00000000..d4f1740b
--- /dev/null
+++ b/sdks/golang/go.mod
@@ -0,0 +1,28 @@
+module github.com/eka-care/eka-docs/sdks/golang
+
+go 1.22.6
+
+require (
+ github.com/microsoft/kiota-abstractions-go v1.7.0
+ github.com/microsoft/kiota-bundle-go v1.0.0
+ github.com/microsoft/kiota-serialization-form-go v1.0.0
+ github.com/microsoft/kiota-serialization-json-go v1.0.8
+ github.com/microsoft/kiota-serialization-multipart-go v1.0.0
+ github.com/microsoft/kiota-serialization-text-go v1.0.0
+)
+
+require (
+ github.com/cjlapao/common-go v0.0.39 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
+ github.com/go-logr/logr v1.4.1 // indirect
+ github.com/go-logr/stdr v1.2.2 // indirect
+ github.com/google/uuid v1.6.0 // indirect
+ github.com/microsoft/kiota-http-go v1.4.5 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
+ github.com/std-uritemplate/std-uritemplate/go v0.0.57 // indirect
+ github.com/stretchr/testify v1.9.0 // indirect
+ go.opentelemetry.io/otel v1.24.0 // indirect
+ go.opentelemetry.io/otel/metric v1.24.0 // indirect
+ go.opentelemetry.io/otel/trace v1.24.0 // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
+)
diff --git a/sdks/golang/go.sum b/sdks/golang/go.sum
new file mode 100644
index 00000000..f5f87767
--- /dev/null
+++ b/sdks/golang/go.sum
@@ -0,0 +1,48 @@
+github.com/cjlapao/common-go v0.0.39 h1:bAAUrj2B9v0kMzbAOhzjSmiyDy+rd56r2sy7oEiQLlA=
+github.com/cjlapao/common-go v0.0.39/go.mod h1:M3dzazLjTjEtZJbbxoA5ZDiGCiHmpwqW9l4UWaddwOA=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
+github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
+github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/microsoft/kiota-abstractions-go v1.7.0 h1:/0OKSSEe94Z1qgpcGE7ZFI9P+4iAnsDQo9v9UOk+R8E=
+github.com/microsoft/kiota-abstractions-go v1.7.0/go.mod h1:FI1I2OHg0E7bK5t8DPnw+9C/CHVyLP6XeqDBT+95pTE=
+github.com/microsoft/kiota-bundle-go v1.0.0 h1:jPfaGP6aBcaHfi09/NJtgXxqi/hqeWFBm4HCPhAr64s=
+github.com/microsoft/kiota-bundle-go v1.0.0/go.mod h1:2aquyp0HHKGaIg6Nf8K1mCjgFFNWn+xXZvSk9A8Gi6c=
+github.com/microsoft/kiota-http-go v1.4.5 h1:BrI9TZ0cWiU1ucP5oSWR6UmP2vR3PaKbQ61TQ/qM5cM=
+github.com/microsoft/kiota-http-go v1.4.5/go.mod h1:Kup5nMDD3a9sjdgRKHCqZWqtrv3FbprjcPaGjLR6FzM=
+github.com/microsoft/kiota-serialization-form-go v1.0.0 h1:UNdrkMnLFqUCccQZerKjblsyVgifS11b3WCx+eFEsAI=
+github.com/microsoft/kiota-serialization-form-go v1.0.0/go.mod h1:h4mQOO6KVTNciMF6azi1J9QB19ujSw3ULKcSNyXXOMA=
+github.com/microsoft/kiota-serialization-json-go v1.0.8 h1:+aViv9k6wqaw1Fx6P49fl5GIB1hN3b6CG0McNTcUYBc=
+github.com/microsoft/kiota-serialization-json-go v1.0.8/go.mod h1:O8+v11U0EUwHlCz7hrW38KxDmdhKAHfv4Q89uvsBalY=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0 h1:3O5sb5Zj+moLBiJympbXNaeV07K0d46IfuEd5v9+pBs=
+github.com/microsoft/kiota-serialization-multipart-go v1.0.0/go.mod h1:yauLeBTpANk4L03XD985akNysG24SnRJGaveZf+p4so=
+github.com/microsoft/kiota-serialization-text-go v1.0.0 h1:XOaRhAXy+g8ZVpcq7x7a0jlETWnWrEum0RhmbYrTFnA=
+github.com/microsoft/kiota-serialization-text-go v1.0.0/go.mod h1:sM1/C6ecnQ7IquQOGUrUldaO5wj+9+v7G2W3sQ3fy6M=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/std-uritemplate/std-uritemplate/go v0.0.57 h1:GHGjptrsmazP4IVDlUprssiEf9ESVkbjx15xQXXzvq4=
+github.com/std-uritemplate/std-uritemplate/go v0.0.57/go.mod h1:rG/bqh/ThY4xE5de7Rap3vaDkYUT76B0GPJ0loYeTTc=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo=
+go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo=
+go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI=
+go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco=
+go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
+go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=