Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ios/Classes/SwiftPokepaySdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ class MethodCallTask {
let accountId = args["accountId"] as! String
let couponId = args["couponId"] as! String
let isReceived = args["is_received"] as! Bool
client.send(BankAPI.Account.PatchCouponDetail(accountId: accountId, couponId: couponId,isReceived: isReceived),handler: self.after)
let code = args["code"] as? String
client.send(BankAPI.Account.PatchCouponDetail(accountId: accountId, couponId: couponId,isReceived: isReceived, code: code),handler: self.after)
case "receiveMessageAttachment":
let env = flutterEnvToSDKEnv(ienv: args["env"] as! Int32)
let accessToken = args["accessToken"] as! String
Expand Down
2 changes: 2 additions & 0 deletions lib/bank_api/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ extension AccountAPI on PokepayAPI {
required String accountId,
required String couponId,
required bool isReceived,
String? code,
}) async {
return await invokeMethod<CouponDetail>(
(j) => CouponDetail.fromJson(j),
Expand All @@ -161,6 +162,7 @@ extension AccountAPI on PokepayAPI {
'accountId': accountId,
'couponId': couponId,
'is_received': isReceived,
'code': code,
},
);
}
Expand Down
4 changes: 4 additions & 0 deletions lib/responses/bankpay_redirect_url.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ part 'bankpay_redirect_url.g.dart';

@JsonSerializable()
class BankPayRedirectUrl {
// このエンドポイントのレスポンスキーは snake_case ではなく camelCase のため、
// field_rename: snake を @JsonKey で打ち消す。
@JsonKey(name: 'redirectUrl')
final String redirectUrl;
@JsonKey(name: 'paytreeCustomerNumber')
final String? paytreeCustomerNumber;

BankPayRedirectUrl({
Expand Down
8 changes: 4 additions & 4 deletions lib/responses/bankpay_redirect_url.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/responses/cvs_authorization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class CvsAuthorization {
final String tel;
final String payLimit;
final Account account;
// コンビニ払込票の URL・受付番号と、完了/取消時刻。
// done_at / canceled_at はネイティブ SDK (Java String / Swift String?) が
// サーバの RFC3339 文字列をそのまま素通しするため、payLimit と同じく String で受ける。
final String? haraikomiUrl;
final String? receiptNo;
final String? doneAt;
final String? canceledAt;

CvsAuthorization({
required this.id,
Expand All @@ -23,6 +30,10 @@ class CvsAuthorization {
required this.tel,
required this.payLimit,
required this.account,
this.haraikomiUrl,
this.receiptNo,
this.doneAt,
this.canceledAt,
});

factory CvsAuthorization.fromJson(Map<String, dynamic> json) =>
Expand Down
8 changes: 8 additions & 0 deletions lib/responses/cvs_authorization.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/responses/private_money.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class PrivateMoney {
final String type;
final String unit;
final String description;
// フィールド名は oneline (一行) の typo だが、公開 API 互換のため改名せず
// JSON キーだけ明示する。field_rename: snake では online_message になってしまう。
@JsonKey(name: 'oneline_message')
final String onlineMessage;
final String? accountImage;
final Images images;
Expand All @@ -26,6 +29,8 @@ class PrivateMoney {
final String? paymentActUrl;
final String? commercialActUrl;
final bool canUseCreditCard;
// field_rename: snake は大文字1文字ごとに _ を挟むため C2C が c2_c になる。
@JsonKey(name: 'can_use_c2c_transfer')
final bool canUseC2CTransfer;
final String? customDomainName;
final List<TopupMethod>? topupMethods;
Expand Down
8 changes: 4 additions & 4 deletions lib/responses/private_money.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading