Documentation ¶
Index ¶
- type Appointment
- type AppointmentAggregated
- type Bank
- type BankAccount
- type Consultation
- type ConsultationAggregated
- type CreatePaymentRequest
- type CreatePaymentResponse
- type DBOptions
- type FeelgoodJWTClaims
- type FeelgoodJWTCustomClaims
- type FeelgoodJWTPayload
- type FlowPaymentData
- type FlowPaymentStatus
- type FlowPendingInfo
- type GatewayOptionalData
- type KafkaErrorMessage
- type KafkaMessage
- type KafkaMetadata
- type NonPublicUser
- type Pagination
- type Patient
- type Payment
- type Practice
- type Practitioner
- type PractitionerAggregated
- type Refund
- type Specialty
- type SubSpecialty
- type University
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appointment ¶
type Appointment struct { ID int64 `json:"id"` PatientID *int64 `json:"patient_id"` PractitionerID *int64 `json:"practitioner_id"` ScheduledStartDateTime *time.Time `json:"scheduled_start_date_time"` ScheduledEndDateTime *time.Time `json:"scheduled_end_date_time"` Status string `json:"status"` EndedAt *time.Time `json:"ended_at"` InternalID string `json:"internal_id"` DurationInSeconds int64 `json:"duration_in_seconds"` ElapsedTimeInSeconds int64 `json:"elapsed_time_in_seconds"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` BookedAt *time.Time `json:"booked_at"` ReservedAt *time.Time `json:"reserved_at"` Price float64 `json:"price"` BatchID string `json:"batch_id"` Timezone string `json:"timezone"` PractitionerUID *string `json:"practitioner_uid"` PatientUID *string `json:"patient_uid"` Practitioner *Practitioner `json:"practitioner,omitempty"` Patient *User `json:"patient,omitempty"` PracticeID *int64 `json:"practice_id"` }
type AppointmentAggregated ¶ added in v0.0.16
type AppointmentAggregated struct { ID int64 `json:"id"` Patient *User `json:"patient"` Practitioner *Practitioner `json:"practitioner"` ScheduledStartDateTime *time.Time `json:"scheduled_start_date_time"` ScheduledEndDateTime *time.Time `json:"scheduled_end_date_time"` Status string `json:"status"` EndedAt *time.Time `json:"ended_at"` InternalID string `json:"internal_id"` DurationInSeconds int64 `json:"duration_in_seconds"` ElapsedTimeInSeconds int64 `json:"elapsed_time_in_seconds"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` BookedAt *time.Time `json:"booked_at"` ReservedAt *time.Time `json:"reserved_at"` Price float64 `json:"price"` BatchID string `json:"batch_id"` Timezone string `json:"timezone"` PractitionerUID string `json:"practitioner_uid"` PatientUID string `json:"patient_uid"` }
type BankAccount ¶ added in v0.0.11
type Consultation ¶ added in v0.0.4
type Consultation struct { ID uint64 `json:"id"` AppointmentID uint64 `json:"appointment_id"` PatientID uint64 `json:"patient_id"` PractitionerID uint64 `json:"practitioner_id"` Status string `json:"status"` ElapsedTimeInSeconds int64 `json:"elapsed_time_in_seconds"` PaymentStatus string `json:"payment_status"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` PractitionerUID string `json:"practitioner_uid"` PatientUID string `json:"patient_uid"` }
type ConsultationAggregated ¶ added in v0.0.16
type ConsultationAggregated struct { ID uint64 `json:"id"` Appointment Appointment `json:"appointment"` Patient Patient `json:"patient"` Practitioner Practitioner `json:"practitioner"` Status string `json:"status"` ElapsedTimeInSeconds int64 `json:"elapsed_time_in_seconds"` PaymentStatus string `json:"payment_status"` PractitionerUID string `json:"practitioner_uid"` PatientUID string `json:"patient_uid"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` }
type CreatePaymentRequest ¶
type CreatePaymentRequest struct { CommerceOrder string `json:"commerce_order"` Subject string `json:"subject"` Currency string `json:"currency"` Amount float64 `json:"amount"` Email string `json:"email"` PaymentMethod int `json:"payment_method"` URLConfirmation string `json:"url_confirmation"` URLReturn string `json:"url_return"` Optional GatewayOptionalData `json:"optional"` Timeout int `json:"timeout"` MerchantID string `json:"merchant_id"` PaymentCurrency string `json:"payment_currency"` }
type CreatePaymentResponse ¶
type DBOptions ¶ added in v0.2.10
type DBOptions struct { Host *string `json:"host"` Port *int `json:"port"` User *string `json:"user"` Password *string `json:"password"` DBName string `json:"db_name"` URI *string `json:"uri"` WithMonitor *bool `json:"with_monitor"` ConnectionTimeout *int `json:"connection_timeout"` SocketTimeout *int `json:"socket_timeout"` MaxPoolSize *uint64 `json:"max_pool_size"` MinPoolSize *uint64 `json:"min_pool_size"` Timeout int `json:"timeout"` RetryReads *bool `json:"retry_reads"` RetryWrites *bool `json:"retry_writes"` TimeZone *string `json:"time_zone"` }
type FeelgoodJWTClaims ¶ added in v0.1.11
type FeelgoodJWTClaims struct { Claims FeelgoodJWTCustomClaims `json:"claims"` jwt.StandardClaims }
type FeelgoodJWTCustomClaims ¶ added in v0.1.3
type FeelgoodJWTPayload ¶ added in v0.1.3
type FlowPaymentData ¶ added in v0.2.7
type FlowPaymentData struct { Date string `json:"date" bson:"date"` Media string `json:"media" bson:"media"` ConversionDate string `json:"conversionDate" bson:"conversion_date"` ConversionRate float64 `json:"conversionRate" bson:"conversion_rate"` Amount string `json:"amount" bson:"amount"` Currency string `json:"currency" bson:"currency"` Fee string `json:"fee" bson:"fee"` Balance float64 `json:"balance" bson:"balance"` TransferDate string `json:"transferDate" bson:"transfer_date"` }
type FlowPaymentStatus ¶ added in v0.2.7
type FlowPaymentStatus struct { FlowOrder uint `json:"flowOrder" bson:"flow_order"` CommerceOrder string `json:"commerceOrder" bson:"commerce_order"` RequestDate string `json:"requestDate" bson:"request_date"` Status uint `json:"status" bson:"status"` Subject string `json:"subject" bson:"subject"` Currency string `json:"currency" bson:"currency"` Amount string `json:"amount" bson:"amount"` Payer string `json:"payer" bson:"payer"` Optional GatewayOptionalData `json:"optional" bson:"optional"` PendingInfo FlowPendingInfo `json:"pendingInfo" bson:"pending_info"` PaymentData FlowPaymentData `json:"paymentData" bson:"payment_data"` MerchantID string `json:"merchantId" bson:"merchant_id"` }
type FlowPendingInfo ¶ added in v0.2.7
type GatewayOptionalData ¶ added in v0.2.2
type KafkaErrorMessage ¶ added in v0.3.3
type KafkaMessage ¶ added in v0.2.0
type KafkaMessage struct { Metadata *KafkaMetadata `json:"metadata"` Data interface{} `json:"data"` Code string `json:"code"` }
type KafkaMetadata ¶ added in v0.2.0
type KafkaMetadata struct {
IssuedBy string `json:"issued_by"`
}
type NonPublicUser ¶ added in v0.5.21
type Pagination ¶ added in v0.2.25
type Patient ¶ added in v0.0.16
type Patient struct { ID int64 `json:"id"` UID string `json:"uid"` FirstName string `json:"first_name"` SecondName string `json:"second_name"` LastName string `json:"last_name"` SecondLastName string `json:"second_last_name"` NationalID string `json:"national_id"` Email string `json:"email"` Cellphone string `json:"cellphone"` FullName string `json:"full_name"` Gender string `json:"gender"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` }
type Payment ¶ added in v0.2.7
type Payment struct { ID string `json:"id" bson:"id"` Status string `json:"status" bson:"status"` Amount float64 `json:"amount" bson:"amount"` Currency string `json:"currency" bson:"currency"` PayerEmail string `json:"payer_email" bson:"payer_email"` Data interface{} `json:"data" bson:"data"` PaymentMethod string `json:"payment_method" bson:"payment_method"` ConversionDate time.Time `json:"conversion_date" bson:"conversion_date"` ConversionRate float64 `json:"conversion_rate" bson:"conversion_rate"` GatewayFee float64 `json:"gateway_fee" bson:"gateway_fee"` GatewayTransferDateToCommerceDate time.Time `json:"gateway_transfer_date" bson:"gateway_transfer_date_to_commerce_date"` Resource string `json:"resource" bson:"resource"` ResourceID string `json:"resource_id" bson:"resource_id"` Gateway *string `json:"gateway" bson:"gateway"` GatewayReferenceID *string `json:"gateway_reference_id" bson:"gateway_reference_id"` GatewayStatus uint `json:"gateway_status" bson:"gateway_status"` InternalReferenceID *string `json:"internal_reference_id" bson:"internal_reference_id"` }
type Practitioner ¶ added in v0.0.10
type Practitioner struct { ID uint64 `json:"id"` UID string `json:"uid"` FirstName string `json:"first_name"` SecondName string `json:"second_name"` LastName string `json:"last_name"` SecondLastName string `json:"second_last_name"` FullName string `json:"full_name"` Gender string `json:"gender"` NationalID string `json:"national_id"` RegistryID string `json:"registry_id"` Bio string `json:"bio"` PracticeUniversityID uint64 `json:"practice_university_id"` SpecialtyUniversityID uint64 `json:"specialty_university_id"` Image string `json:"image"` Email string `json:"email"` PracticeID int64 `json:"practice_id"` SpecialtyID int64 `json:"specialty_id"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at"` InternalID string `json:"internal_id"` PracticeName string `json:"practice_name"` SpecialtyName string `json:"specialty_name"` PracticeUniversityName string `json:"practice_university_name"` SpecialtyUniversityName string `json:"specialty_university_name"` Status string `json:"status"` Slug string `json:"slug"` }
type PractitionerAggregated ¶ added in v0.0.13
type PractitionerAggregated struct { ID uint64 `json:"id"` UID string `json:"uid"` FirstName string `json:"first_name"` SecondName string `json:"second_name"` LastName string `json:"last_name"` SecondLastName string `json:"second_last_name"` FullName string `json:"full_name"` NationalID string `json:"national_id"` RegistryID string `json:"registry_id"` Image string `json:"image"` Gender string `json:"gender"` Bio string `json:"bio"` PracticeUniversity *University `json:"practice_university"` SpecialtyUniversity *University `json:"specialty_university"` Practice *Practice `json:"practice"` Specialty *Specialty `json:"specialty"` InternalID string `json:"internal_id"` Slug string `json:"slug"` Status string `json:"status"` }
type Refund ¶ added in v0.2.19
type Refund struct { ID string `json:"id" bson:"id"` Status uint `json:"status" bson:"status"` Amount float64 `json:"amount" bson:"amount"` Currency string `json:"currency" bson:"currency"` Fee float64 `json:"fee" bson:"fee"` RefundRequestDate time.Time `json:"refundRequestDate" bson:"refund_request_date"` }
type SubSpecialty ¶ added in v0.0.17
type University ¶ added in v0.0.13
type User ¶ added in v0.0.8
type User struct { UID string `json:"uid"` FirstName *string `json:"first_name"` SecondName *string `json:"second_name"` LastName *string `json:"last_name"` SecondLastName *string `json:"second_last_name"` Gender *string `json:"gender"` Nationality *string `json:"nationality"` NationalID *string `json:"national_id"` Email *string `json:"email"` Type *string `json:"type"` Roles []string `json:"roles"` FullName string `json:"full_name"` }
func (*User) GetFullName ¶ added in v0.2.16
func (*User) GetFullNameWithSecondLastName ¶ added in v0.2.16
func (*User) GetFullNameWithSecondName ¶ added in v0.2.16
func (*User) IsProfileCompleted ¶ added in v0.2.16
func (*User) ToNonPublicUser ¶ added in v0.5.21
func (u *User) ToNonPublicUser() *NonPublicUser
Click to show internal directories.
Click to hide internal directories.