oro-sdk-apis 3.2.3 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { PracticeAccount, Uuid } from '../models';
1
+ import { PaymentStatus, PracticeAccount, Uuid } from '../models';
2
2
  import { Assignment, AssignmentRequest, PaymentIntentRequestMetadata, PlanType, Practice, PracticeConfigKind, PracticeConfigs, PracticeInvoice, PracticePayment, PracticePaymentIntent, PracticePlan, PracticePlanPrices, PracticeWorkflow, PracticeWorkflowWithTagSpecialty, Practitioner, PractitionerLicense, PractitionerPreference, PractitionerQuota, PractitionerRole, WorkflowType } from '../models/practice';
3
3
  import { APIService } from './api';
4
4
  export declare class PracticeService {
@@ -58,7 +58,7 @@ export declare class PracticeService {
58
58
  practiceGetPlans(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePlan[]>;
59
59
  practiceGetPlan(practiceUuid: Uuid, planId: number): Promise<PracticePlan>;
60
60
  practiceGetPlanPrices(practiceUuid: Uuid, planId: number): Promise<PracticePlanPrices>;
61
- practiceGetPayments(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePayment[]>;
61
+ practiceGetPayments(practiceUuid: Uuid, statusPayment?: PaymentStatus, withConsultUUIDNULL?: boolean, perPage?: number, indexPage?: number): Promise<PracticePayment[]>;
62
62
  practiceGetPayment(practiceUuid: Uuid, idStripeInvoiceOrPaymentIntent: string): Promise<PracticePayment>;
63
63
  practiceGetPaymentForStripePaymentIntentWithID(practiceUuid: Uuid, stripePaymentIntentId: number): Promise<PracticePayment>;
64
64
  practiceGetPaymentsIntents(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePaymentIntent[]>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.3",
2
+ "version": "3.2.5",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -145,6 +145,7 @@ export interface SlideData {
145
145
  export enum MetadataCategory { //these are generic metadata categories
146
146
  ChildPersonal = 'ChildPersonal',
147
147
  Consultation = 'Consultation',
148
+ Refill = 'Refill',
148
149
  DataRetrieval = 'DataRetrieval',
149
150
  Followup = 'Followup',
150
151
  Recovery = 'Recovery',
@@ -199,25 +200,25 @@ export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>>
199
200
  export declare type QuestionData =
200
201
  | GenericQuestionData<'title' | 'paragraph' | 'checkbox', void>
201
202
  | GenericQuestionData<
202
- | 'text'
203
- | 'text-area'
204
- | 'date'
205
- | 'number'
206
- | 'images'
207
- | 'body-parts'
208
- | 'pharmacy-picker'
209
- | 'online-pharmacy-picker'
210
- | 'place-address'
211
- >
203
+ | 'text'
204
+ | 'text-area'
205
+ | 'date'
206
+ | 'number'
207
+ | 'images'
208
+ | 'body-parts'
209
+ | 'pharmacy-picker'
210
+ | 'online-pharmacy-picker'
211
+ | 'place-address'
212
+ >
212
213
  | GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions>
213
214
  | GenericQuestionData<
214
- 'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group',
215
- IndexedData<ChoiceInputData>
216
- >
215
+ 'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group',
216
+ IndexedData<ChoiceInputData>
217
+ >
217
218
  | GroupedGenericQuestionData<
218
- 'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage' | 'hair-loss-other',
219
- IndexedData<RadioInputData>
220
- >
219
+ 'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage' | 'hair-loss-other',
220
+ IndexedData<RadioInputData>
221
+ >
221
222
  | GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
222
223
  | GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
223
224
  | GroupedGenericQuestionData<'tile-radio', IndexedData<TileRadioData>>
@@ -1,5 +1,5 @@
1
1
  import { hashToBase64String } from '../helpers'
2
- import { PracticeAccount, Uuid } from '../models'
2
+ import {PaymentStatus, PracticeAccount, Uuid} from '../models'
3
3
  import {
4
4
  Assignment,
5
5
  AssignmentRequest,
@@ -149,9 +149,20 @@ export class PracticeService {
149
149
  }
150
150
 
151
151
  // Payments
152
- public practiceGetPayments(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePayment[]> {
152
+ public practiceGetPayments(
153
+ practiceUuid: Uuid,
154
+ statusPayment?: PaymentStatus,
155
+ withConsultUUIDNULL?: boolean,
156
+ perPage?: number,
157
+ indexPage?: number,
158
+ ): Promise<PracticePayment[]> {
153
159
  return this.api.get<PracticePayment[]>(`${this.baseURL}/v1/practices/${practiceUuid}/payments`, {
154
- params: { kind: planType },
160
+ params: {
161
+ status: statusPayment,
162
+ withConsultUUIDNULL,
163
+ perPage,
164
+ indexPage
165
+ },
155
166
  })
156
167
  }
157
168