Skip to content

Commit

Permalink
chore: update SDK from api-definitions (#723)
Browse files Browse the repository at this point in the history
Co-authored-by: rebilly-machine-user <[email protected]>
  • Loading branch information
1 parent 7ad8fb6 commit c7b5175
Show file tree
Hide file tree
Showing 17 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-files-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rebilly/client-php": patch
---

feat(be): Integrate JetonCash Rebilly/rebilly#8391
2 changes: 2 additions & 0 deletions src/Model/AdjustReadyToPayGeneric.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class AdjustReadyToPayGeneric implements AdjustPaymentMethod

public const PAYMENT_METHOD_JETON = 'Jeton';

public const PAYMENT_METHOD_JETON_CASH = 'JetonCash';

public const PAYMENT_METHOD_JPAY = 'jpay';

public const PAYMENT_METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/AdjustReadyToPayoutGeneric.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class AdjustReadyToPayoutGeneric implements AdjustReadyToPayoutPaymentMethod

public const PAYMENT_METHOD_JETON = 'Jeton';

public const PAYMENT_METHOD_JETON_CASH = 'JetonCash';

public const PAYMENT_METHOD_JPAY = 'jpay';

public const PAYMENT_METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/AlternativeInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class AlternativeInstrument implements PaymentInstrument, PostPaymentInstrumentR

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/AlternativePaymentInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class AlternativePaymentInstrument implements CustomerDefaultPaymentInstrument,

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/AlternativePaymentToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class AlternativePaymentToken implements CompositeToken

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/CheckoutForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ class CheckoutForm implements JsonSerializable

public const PAYMENT_METHODS_JETON = 'Jeton';

public const PAYMENT_METHODS_JETON_CASH = 'JetonCash';

public const PAYMENT_METHODS_JPAY = 'jpay';

public const PAYMENT_METHODS_KAKAO_PAY = 'KakaoPay';
Expand Down
1 change: 1 addition & 0 deletions src/Model/CustomerDefaultPaymentInstrumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static function from(array $data = []): CustomerDefaultPaymentInstrument
'Interac-express-connect' => AlternativePaymentInstrument::from($data),
'Interac-online' => AlternativePaymentInstrument::from($data),
'Jeton' => AlternativePaymentInstrument::from($data),
'JetonCash' => AlternativePaymentInstrument::from($data),
'KNOT' => AlternativePaymentInstrument::from($data),
'KakaoPay' => AlternativePaymentInstrument::from($data),
'Khelocard' => AlternativePaymentInstrument::from($data),
Expand Down
2 changes: 2 additions & 0 deletions src/Model/GatewayAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,8 @@ abstract class GatewayAccount implements JsonSerializable

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
18 changes: 18 additions & 0 deletions src/Model/JetonCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public function __construct(array $data = [])
if (array_key_exists('apiKey', $data)) {
$this->setApiKey($data['apiKey']);
}
if (array_key_exists('secret', $data)) {
$this->setSecret($data['secret']);
}
}

public static function from(array $data = []): self
Expand All @@ -43,12 +46,27 @@ public function setApiKey(string $apiKey): static
return $this;
}

public function getSecret(): ?string
{
return $this->fields['secret'] ?? null;
}

public function setSecret(null|string $secret): static
{
$this->fields['secret'] = $secret;

return $this;
}

public function jsonSerialize(): array
{
$data = [];
if (array_key_exists('apiKey', $this->fields)) {
$data['apiKey'] = $this->fields['apiKey'];
}
if (array_key_exists('secret', $this->fields)) {
$data['secret'] = $this->fields['secret'];
}

return $data;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Model/PaymentInstructionMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class PaymentInstructionMethods implements PaymentInstruction

public const METHODS_JETON = 'Jeton';

public const METHODS_JETON_CASH = 'JetonCash';

public const METHODS_JPAY = 'jpay';

public const METHODS_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/PayoutRequestAllocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ class PayoutRequestAllocations implements JsonSerializable

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
1 change: 1 addition & 0 deletions src/Model/PostPaymentInstrumentRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public static function from(array $data = []): PostPaymentInstrumentRequest
'Interac-eTransfer' => AlternativeInstrument::from($data),
'Interac-online' => AlternativeInstrument::from($data),
'Jeton' => AlternativeInstrument::from($data),
'JetonCash' => AlternativeInstrument::from($data),
'KNOT' => AlternativeInstrument::from($data),
'KakaoPay' => AlternativeInstrument::from($data),
'Klarna' => AlternativeInstrument::from($data),
Expand Down
2 changes: 2 additions & 0 deletions src/Model/ReadyToPayGenericMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class ReadyToPayGenericMethod implements ReadyToPayMethods

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
2 changes: 2 additions & 0 deletions src/Model/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,8 @@ class Transaction implements JsonSerializable

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down
1 change: 1 addition & 0 deletions src/Model/TransactionPaymentInstrumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static function from(array $data = []): TransactionPaymentInstrument
'Interac-express-connect' => AlternativePaymentInstrument::from($data),
'Interac-online' => AlternativePaymentInstrument::from($data),
'Jeton' => AlternativePaymentInstrument::from($data),
'JetonCash' => AlternativePaymentInstrument::from($data),
'KNOT' => AlternativePaymentInstrument::from($data),
'KakaoPay' => AlternativePaymentInstrument::from($data),
'Khelocard' => AlternativePaymentInstrument::from($data),
Expand Down
2 changes: 2 additions & 0 deletions src/Model/VaultedInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ class VaultedInstrument implements CustomerDefaultPaymentInstrument, Transaction

public const METHOD_JETON = 'Jeton';

public const METHOD_JETON_CASH = 'JetonCash';

public const METHOD_JPAY = 'jpay';

public const METHOD_KAKAO_PAY = 'KakaoPay';
Expand Down

0 comments on commit c7b5175

Please sign in to comment.