@opexa/portal-sdk 0.45.5 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -706,11 +706,11 @@ var CREATE_GCASH_DEPOSIT_MUTATION = gql`
706
706
  }
707
707
  }
708
708
  `;
709
- var CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT_MUTATION = gql`
710
- mutation CreateGCashDirectWebpayDeposit(
711
- $input: CreateGCashDirectWebpayDepositInput!
709
+ var CREATE_GCASH_WEBPAY_DEPOSIT_MUTATION = gql`
710
+ mutation CreateGCashWebpayDeposit(
711
+ $input: CreateGCashWebpayDepositInput!
712
712
  ) {
713
- createGCashDirectWebpayDeposit(input: $input) {
713
+ createGCashWebpayDeposit(input: $input) {
714
714
  ... on DepositPromoMaximumAmountExceededError {
715
715
  __typename
716
716
  }
@@ -820,7 +820,7 @@ var CREATE_AIO_QRPH_DEPOSIT_MUTATION = gql`
820
820
  }
821
821
  `;
822
822
  var CREATE_AIO_GCASH_DEPOSIT_MUTATION = gql`
823
- mutation CreateAIOGCashDeposit($input: CreateAiOGCashDepositInput!) {
823
+ mutation CreateAiOGCashDeposit($input: CreateAiOGCashDepositInput!) {
824
824
  createAiOGCashDeposit(input: $input) {
825
825
  ... on DepositPromoMaximumAmountExceededError {
826
826
  __typename
@@ -847,7 +847,7 @@ var CREATE_AIO_GCASH_DEPOSIT_MUTATION = gql`
847
847
  }
848
848
  `;
849
849
  var CREATE_AIO_PAY_MAYA_DEPOSIT_MUTATION = gql`
850
- mutation CreateAIOPayMayaDeposit($input: CreateAiOPayMayaDepositInput!) {
850
+ mutation CreateAiOPayMayaDeposit($input: CreateAiOPayMayaDepositInput!) {
851
851
  createAiOPayMayaDeposit(input: $input) {
852
852
  ... on DepositPromoMaximumAmountExceededError {
853
853
  __typename
@@ -874,7 +874,7 @@ var CREATE_AIO_PAY_MAYA_DEPOSIT_MUTATION = gql`
874
874
  }
875
875
  `;
876
876
  var CREATE_AIO_GRAB_PAY_DEPOSIT_MUTATION = gql`
877
- mutation CreateAIOGrabPayDeposit($input: CreateAiOGrabPayDepositInput!) {
877
+ mutation CreateAiOGrabPayDeposit($input: CreateAiOGrabPayDepositInput!) {
878
878
  createAiOGrabPayDeposit(input: $input) {
879
879
  ... on DepositPromoMaximumAmountExceededError {
880
880
  __typename
@@ -901,7 +901,7 @@ var CREATE_AIO_GRAB_PAY_DEPOSIT_MUTATION = gql`
901
901
  }
902
902
  `;
903
903
  var CREATE_AIO_PALAWAN_PAY_DEPOSIT_MUTATION = gql`
904
- mutation CreateAIOPalawanPayDeposit($input: CreateAiOPalawanPayDepositInput!) {
904
+ mutation CreateAiOPalawanPayDeposit($input: CreateAiOPalawanPayDepositInput!) {
905
905
  createAiOPalawanPayDeposit(input: $input) {
906
906
  ... on DepositPromoMaximumAmountExceededError {
907
907
  __typename
@@ -1029,7 +1029,7 @@ var DEPOSIT_QUERY = gql`
1029
1029
  checkoutUrl
1030
1030
  error
1031
1031
  }
1032
- ... on AiOGcashDeposit {
1032
+ ... on AiOGCashDeposit {
1033
1033
  id
1034
1034
  type
1035
1035
  status
@@ -1095,7 +1095,7 @@ var DEPOSIT_QUERY = gql`
1095
1095
  vca
1096
1096
  error
1097
1097
  }
1098
- ... on GCashDirectWebpayDeposit {
1098
+ ... on GCashWebpayDeposit {
1099
1099
  id
1100
1100
  type
1101
1101
  status
@@ -4181,9 +4181,9 @@ var WalletService = class {
4181
4181
  ok: true
4182
4182
  };
4183
4183
  }
4184
- async createGCashDirectWebpayDeposit(variables) {
4184
+ async createGCashWebpayDeposit(variables) {
4185
4185
  const { reCAPTCHAResponse, ...others } = variables;
4186
- const res = await this.client.request(CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT_MUTATION, others, {
4186
+ const res = await this.client.request(CREATE_GCASH_WEBPAY_DEPOSIT_MUTATION, others, {
4187
4187
  headers: {
4188
4188
  ...reCAPTCHAResponse && {
4189
4189
  "google-recaptcha-response": reCAPTCHAResponse
@@ -4191,11 +4191,11 @@ var WalletService = class {
4191
4191
  }
4192
4192
  });
4193
4193
  if (!res.ok) return res;
4194
- if (res.data.createGCashDirectWebpayDeposit) {
4194
+ if (res.data.createGCashWebpayDeposit) {
4195
4195
  return {
4196
4196
  ok: false,
4197
4197
  error: createOperationError(
4198
- res.data.createGCashDirectWebpayDeposit.__typename
4198
+ res.data.createGCashWebpayDeposit.__typename
4199
4199
  )
4200
4200
  };
4201
4201
  }
@@ -4243,7 +4243,7 @@ var WalletService = class {
4243
4243
  ok: true
4244
4244
  };
4245
4245
  }
4246
- async createAIOGcashDeposit(variables) {
4246
+ async createAiOGCashDeposit(variables) {
4247
4247
  const { reCAPTCHAResponse, ...others } = variables;
4248
4248
  const res = await this.client.request(CREATE_AIO_GCASH_DEPOSIT_MUTATION, others, {
4249
4249
  headers: {
@@ -4253,17 +4253,17 @@ var WalletService = class {
4253
4253
  }
4254
4254
  });
4255
4255
  if (!res.ok) return res;
4256
- if (res.data.createAIOGcashDeposit) {
4256
+ if (res.data.createAiOGCashDeposit) {
4257
4257
  return {
4258
4258
  ok: false,
4259
- error: createOperationError(res.data.createAIOGcashDeposit.__typename)
4259
+ error: createOperationError(res.data.createAiOGCashDeposit.__typename)
4260
4260
  };
4261
4261
  }
4262
4262
  return {
4263
4263
  ok: true
4264
4264
  };
4265
4265
  }
4266
- async createAIOPayMayaDeposit(variables) {
4266
+ async createAiOPayMayaDeposit(variables) {
4267
4267
  const { reCAPTCHAResponse, ...others } = variables;
4268
4268
  const res = await this.client.request(CREATE_AIO_PAY_MAYA_DEPOSIT_MUTATION, others, {
4269
4269
  headers: {
@@ -4273,17 +4273,17 @@ var WalletService = class {
4273
4273
  }
4274
4274
  });
4275
4275
  if (!res.ok) return res;
4276
- if (res.data.createAIOPayMayaDeposit) {
4276
+ if (res.data.createAiOPayMayaDeposit) {
4277
4277
  return {
4278
4278
  ok: false,
4279
- error: createOperationError(res.data.createAIOPayMayaDeposit.__typename)
4279
+ error: createOperationError(res.data.createAiOPayMayaDeposit.__typename)
4280
4280
  };
4281
4281
  }
4282
4282
  return {
4283
4283
  ok: true
4284
4284
  };
4285
4285
  }
4286
- async createAIOGrabPayDeposit(variables) {
4286
+ async createAiOGrabPayDeposit(variables) {
4287
4287
  const { reCAPTCHAResponse, ...others } = variables;
4288
4288
  const res = await this.client.request(CREATE_AIO_GRAB_PAY_DEPOSIT_MUTATION, others, {
4289
4289
  headers: {
@@ -4293,17 +4293,17 @@ var WalletService = class {
4293
4293
  }
4294
4294
  });
4295
4295
  if (!res.ok) return res;
4296
- if (res.data.createAIOGrabPayDeposit) {
4296
+ if (res.data.createAiOGrabPayDeposit) {
4297
4297
  return {
4298
4298
  ok: false,
4299
- error: createOperationError(res.data.createAIOGrabPayDeposit.__typename)
4299
+ error: createOperationError(res.data.createAiOGrabPayDeposit.__typename)
4300
4300
  };
4301
4301
  }
4302
4302
  return {
4303
4303
  ok: true
4304
4304
  };
4305
4305
  }
4306
- async createAIOPalawanPayDeposit(variables) {
4306
+ async createAiOPalawanPayDeposit(variables) {
4307
4307
  const { reCAPTCHAResponse, ...others } = variables;
4308
4308
  const res = await this.client.request(CREATE_AIO_PALAWAN_PAY_DEPOSIT_MUTATION, others, {
4309
4309
  headers: {
@@ -4313,10 +4313,10 @@ var WalletService = class {
4313
4313
  }
4314
4314
  });
4315
4315
  if (!res.ok) return res;
4316
- if (res.data.createAIOPalawanPayDeposit) {
4316
+ if (res.data.createAiOPalawanPayDeposit) {
4317
4317
  return {
4318
4318
  ok: false,
4319
- error: createOperationError(res.data.createAIOPalawanPayDeposit.__typename)
4319
+ error: createOperationError(res.data.createAiOPalawanPayDeposit.__typename)
4320
4320
  };
4321
4321
  }
4322
4322
  return {
@@ -8456,7 +8456,7 @@ var Sdk = class {
8456
8456
  if (!res.ok) return res;
8457
8457
  }
8458
8458
  if (input.type === "AIO_GCASH") {
8459
- const res = await this.walletService.createAIOGcashDeposit({
8459
+ const res = await this.walletService.createAiOGCashDeposit({
8460
8460
  input: {
8461
8461
  id,
8462
8462
  amount: input.amount.toString(),
@@ -8468,7 +8468,7 @@ var Sdk = class {
8468
8468
  if (!res.ok) return res;
8469
8469
  }
8470
8470
  if (input.type === "AIO_PAY_MAYA") {
8471
- const res = await this.walletService.createAIOPayMayaDeposit({
8471
+ const res = await this.walletService.createAiOPayMayaDeposit({
8472
8472
  input: {
8473
8473
  id,
8474
8474
  amount: input.amount.toString(),
@@ -8480,7 +8480,7 @@ var Sdk = class {
8480
8480
  if (!res.ok) return res;
8481
8481
  }
8482
8482
  if (input.type === "AIO_GRAB_PAY") {
8483
- const res = await this.walletService.createAIOGrabPayDeposit({
8483
+ const res = await this.walletService.createAiOGrabPayDeposit({
8484
8484
  input: {
8485
8485
  id,
8486
8486
  amount: input.amount.toString(),
@@ -8492,7 +8492,7 @@ var Sdk = class {
8492
8492
  if (!res.ok) return res;
8493
8493
  }
8494
8494
  if (input.type === "AIO_PALAWAN_PAY") {
8495
- const res = await this.walletService.createAIOPalawanPayDeposit({
8495
+ const res = await this.walletService.createAiOPalawanPayDeposit({
8496
8496
  input: {
8497
8497
  id,
8498
8498
  amount: input.amount.toString(),
@@ -8550,8 +8550,8 @@ var Sdk = class {
8550
8550
  });
8551
8551
  if (!res.ok) return res;
8552
8552
  }
8553
- if (input.type === "GCASH_DIRECT_WEBPAY") {
8554
- const res = await this.walletService.createGCashDirectWebpayDeposit({
8553
+ if (input.type === "GCASH_WEBPAY") {
8554
+ const res = await this.walletService.createGCashWebpayDeposit({
8555
8555
  input: {
8556
8556
  id,
8557
8557
  amount: input.amount.toString(),